// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/struct.proto

package org.tensorflow.proto.framework;

/**
 * <pre>
 * `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.
 * </pre>
 *
 * 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;
  /**
   * <pre>
   * Represents None.
   * </pre>
   *
   * <code>.tensorflow.NoneValue none_value = 1;</code>
   */
  public boolean hasNoneValue() {
    return kindCase_ == 1;
  }
  /**
   * <pre>
   * Represents None.
   * </pre>
   *
   * <code>.tensorflow.NoneValue none_value = 1;</code>
   */
  public org.tensorflow.proto.framework.NoneValue getNoneValue() {
    if (kindCase_ == 1) {
       return (org.tensorflow.proto.framework.NoneValue) kind_;
    }
    return org.tensorflow.proto.framework.NoneValue.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents None.
   * </pre>
   *
   * <code>.tensorflow.NoneValue none_value = 1;</code>
   */
  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;
  /**
   * <pre>
   * Represents a double-precision floating-point value (a Python `float`).
   * </pre>
   *
   * <code>double float64_value = 11;</code>
   */
  public double getFloat64Value() {
    if (kindCase_ == 11) {
      return (java.lang.Double) kind_;
    }
    return 0D;
  }

  public static final int INT64_VALUE_FIELD_NUMBER = 12;
  /**
   * <pre>
   * Represents a signed integer value, limited to 64 bits.
   * Larger values from Python's arbitrary-precision integers are unsupported.
   * </pre>
   *
   * <code>sint64 int64_value = 12;</code>
   */
  public long getInt64Value() {
    if (kindCase_ == 12) {
      return (java.lang.Long) kind_;
    }
    return 0L;
  }

  public static final int STRING_VALUE_FIELD_NUMBER = 13;
  /**
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string string_value = 13;</code>
   */
  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;
    }
  }
  /**
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string string_value = 13;</code>
   */
  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;
  /**
   * <pre>
   * Represents a boolean value.
   * </pre>
   *
   * <code>bool bool_value = 14;</code>
   */
  public boolean getBoolValue() {
    if (kindCase_ == 14) {
      return (java.lang.Boolean) kind_;
    }
    return false;
  }

  public static final int TENSOR_SHAPE_VALUE_FIELD_NUMBER = 31;
  /**
   * <pre>
   * Represents a TensorShape.
   * </pre>
   *
   * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
   */
  public boolean hasTensorShapeValue() {
    return kindCase_ == 31;
  }
  /**
   * <pre>
   * Represents a TensorShape.
   * </pre>
   *
   * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
   */
  public org.tensorflow.proto.framework.TensorShapeProto getTensorShapeValue() {
    if (kindCase_ == 31) {
       return (org.tensorflow.proto.framework.TensorShapeProto) kind_;
    }
    return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents a TensorShape.
   * </pre>
   *
   * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
   */
  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;
  /**
   * <pre>
   * Represents an enum value for dtype.
   * </pre>
   *
   * <code>.tensorflow.DataType tensor_dtype_value = 32;</code>
   */
  public int getTensorDtypeValueValue() {
    if (kindCase_ == 32) {
      return (java.lang.Integer) kind_;
    }
    return 0;
  }
  /**
   * <pre>
   * Represents an enum value for dtype.
   * </pre>
   *
   * <code>.tensorflow.DataType tensor_dtype_value = 32;</code>
   */
  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;
  /**
   * <pre>
   * Represents a value for tf.TensorSpec.
   * </pre>
   *
   * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
   */
  public boolean hasTensorSpecValue() {
    return kindCase_ == 33;
  }
  /**
   * <pre>
   * Represents a value for tf.TensorSpec.
   * </pre>
   *
   * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
   */
  public org.tensorflow.proto.framework.TensorSpecProto getTensorSpecValue() {
    if (kindCase_ == 33) {
       return (org.tensorflow.proto.framework.TensorSpecProto) kind_;
    }
    return org.tensorflow.proto.framework.TensorSpecProto.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents a value for tf.TensorSpec.
   * </pre>
   *
   * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
   */
  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;
  /**
   * <pre>
   * Represents a value for tf.TypeSpec.
   * </pre>
   *
   * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
   */
  public boolean hasTypeSpecValue() {
    return kindCase_ == 34;
  }
  /**
   * <pre>
   * Represents a value for tf.TypeSpec.
   * </pre>
   *
   * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
   */
  public org.tensorflow.proto.framework.TypeSpecProto getTypeSpecValue() {
    if (kindCase_ == 34) {
       return (org.tensorflow.proto.framework.TypeSpecProto) kind_;
    }
    return org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents a value for tf.TypeSpec.
   * </pre>
   *
   * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
   */
  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;
  /**
   * <pre>
   * Represents a value for tf.BoundedTensorSpec.
   * </pre>
   *
   * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
   */
  public boolean hasBoundedTensorSpecValue() {
    return kindCase_ == 35;
  }
  /**
   * <pre>
   * Represents a value for tf.BoundedTensorSpec.
   * </pre>
   *
   * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
   */
  public org.tensorflow.proto.framework.BoundedTensorSpecProto getBoundedTensorSpecValue() {
    if (kindCase_ == 35) {
       return (org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_;
    }
    return org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents a value for tf.BoundedTensorSpec.
   * </pre>
   *
   * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
   */
  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;
  /**
   * <pre>
   * Represents a list of `Value`.
   * </pre>
   *
   * <code>.tensorflow.ListValue list_value = 51;</code>
   */
  public boolean hasListValue() {
    return kindCase_ == 51;
  }
  /**
   * <pre>
   * Represents a list of `Value`.
   * </pre>
   *
   * <code>.tensorflow.ListValue list_value = 51;</code>
   */
  public org.tensorflow.proto.framework.ListValue getListValue() {
    if (kindCase_ == 51) {
       return (org.tensorflow.proto.framework.ListValue) kind_;
    }
    return org.tensorflow.proto.framework.ListValue.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents a list of `Value`.
   * </pre>
   *
   * <code>.tensorflow.ListValue list_value = 51;</code>
   */
  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;
  /**
   * <pre>
   * Represents a tuple of `Value`.
   * </pre>
   *
   * <code>.tensorflow.TupleValue tuple_value = 52;</code>
   */
  public boolean hasTupleValue() {
    return kindCase_ == 52;
  }
  /**
   * <pre>
   * Represents a tuple of `Value`.
   * </pre>
   *
   * <code>.tensorflow.TupleValue tuple_value = 52;</code>
   */
  public org.tensorflow.proto.framework.TupleValue getTupleValue() {
    if (kindCase_ == 52) {
       return (org.tensorflow.proto.framework.TupleValue) kind_;
    }
    return org.tensorflow.proto.framework.TupleValue.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents a tuple of `Value`.
   * </pre>
   *
   * <code>.tensorflow.TupleValue tuple_value = 52;</code>
   */
  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;
  /**
   * <pre>
   * Represents a dict `Value`.
   * </pre>
   *
   * <code>.tensorflow.DictValue dict_value = 53;</code>
   */
  public boolean hasDictValue() {
    return kindCase_ == 53;
  }
  /**
   * <pre>
   * Represents a dict `Value`.
   * </pre>
   *
   * <code>.tensorflow.DictValue dict_value = 53;</code>
   */
  public org.tensorflow.proto.framework.DictValue getDictValue() {
    if (kindCase_ == 53) {
       return (org.tensorflow.proto.framework.DictValue) kind_;
    }
    return org.tensorflow.proto.framework.DictValue.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents a dict `Value`.
   * </pre>
   *
   * <code>.tensorflow.DictValue dict_value = 53;</code>
   */
  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;
  /**
   * <pre>
   * Represents Python's namedtuple.
   * </pre>
   *
   * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
   */
  public boolean hasNamedTupleValue() {
    return kindCase_ == 54;
  }
  /**
   * <pre>
   * Represents Python's namedtuple.
   * </pre>
   *
   * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
   */
  public org.tensorflow.proto.framework.NamedTupleValue getNamedTupleValue() {
    if (kindCase_ == 54) {
       return (org.tensorflow.proto.framework.NamedTupleValue) kind_;
    }
    return org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance();
  }
  /**
   * <pre>
   * Represents Python's namedtuple.
   * </pre>
   *
   * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
   */
  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;
  }
  /**
   * <pre>
   * `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.
   * </pre>
   *
   * Protobuf type {@code tensorflow.StructuredValue}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<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_;
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    public boolean hasNoneValue() {
      return kindCase_ == 1;
    }
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    public org.tensorflow.proto.framework.NoneValue.Builder getNoneValueBuilder() {
      return getNoneValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents None.
     * </pre>
     *
     * <code>.tensorflow.NoneValue none_value = 1;</code>
     */
    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_;
    }

    /**
     * <pre>
     * Represents a double-precision floating-point value (a Python `float`).
     * </pre>
     *
     * <code>double float64_value = 11;</code>
     */
    public double getFloat64Value() {
      if (kindCase_ == 11) {
        return (java.lang.Double) kind_;
      }
      return 0D;
    }
    /**
     * <pre>
     * Represents a double-precision floating-point value (a Python `float`).
     * </pre>
     *
     * <code>double float64_value = 11;</code>
     */
    public Builder setFloat64Value(double value) {
      kindCase_ = 11;
      kind_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Represents a double-precision floating-point value (a Python `float`).
     * </pre>
     *
     * <code>double float64_value = 11;</code>
     */
    public Builder clearFloat64Value() {
      if (kindCase_ == 11) {
        kindCase_ = 0;
        kind_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * <pre>
     * Represents a signed integer value, limited to 64 bits.
     * Larger values from Python's arbitrary-precision integers are unsupported.
     * </pre>
     *
     * <code>sint64 int64_value = 12;</code>
     */
    public long getInt64Value() {
      if (kindCase_ == 12) {
        return (java.lang.Long) kind_;
      }
      return 0L;
    }
    /**
     * <pre>
     * Represents a signed integer value, limited to 64 bits.
     * Larger values from Python's arbitrary-precision integers are unsupported.
     * </pre>
     *
     * <code>sint64 int64_value = 12;</code>
     */
    public Builder setInt64Value(long value) {
      kindCase_ = 12;
      kind_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Represents a signed integer value, limited to 64 bits.
     * Larger values from Python's arbitrary-precision integers are unsupported.
     * </pre>
     *
     * <code>sint64 int64_value = 12;</code>
     */
    public Builder clearInt64Value() {
      if (kindCase_ == 12) {
        kindCase_ = 0;
        kind_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string string_value = 13;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string string_value = 13;</code>
     */
    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;
      }
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string string_value = 13;</code>
     */
    public Builder setStringValue(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  kindCase_ = 13;
      kind_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string string_value = 13;</code>
     */
    public Builder clearStringValue() {
      if (kindCase_ == 13) {
        kindCase_ = 0;
        kind_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * <pre>
     * 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.
     * </pre>
     *
     * <code>string string_value = 13;</code>
     */
    public Builder setStringValueBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      kindCase_ = 13;
      kind_ = value;
      onChanged();
      return this;
    }

    /**
     * <pre>
     * Represents a boolean value.
     * </pre>
     *
     * <code>bool bool_value = 14;</code>
     */
    public boolean getBoolValue() {
      if (kindCase_ == 14) {
        return (java.lang.Boolean) kind_;
      }
      return false;
    }
    /**
     * <pre>
     * Represents a boolean value.
     * </pre>
     *
     * <code>bool bool_value = 14;</code>
     */
    public Builder setBoolValue(boolean value) {
      kindCase_ = 14;
      kind_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Represents a boolean value.
     * </pre>
     *
     * <code>bool bool_value = 14;</code>
     */
    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_;
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    public boolean hasTensorShapeValue() {
      return kindCase_ == 31;
    }
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    public org.tensorflow.proto.framework.TensorShapeProto.Builder getTensorShapeValueBuilder() {
      return getTensorShapeValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a TensorShape.
     * </pre>
     *
     * <code>.tensorflow.TensorShapeProto tensor_shape_value = 31;</code>
     */
    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_;
    }

    /**
     * <pre>
     * Represents an enum value for dtype.
     * </pre>
     *
     * <code>.tensorflow.DataType tensor_dtype_value = 32;</code>
     */
    public int getTensorDtypeValueValue() {
      if (kindCase_ == 32) {
        return ((java.lang.Integer) kind_).intValue();
      }
      return 0;
    }
    /**
     * <pre>
     * Represents an enum value for dtype.
     * </pre>
     *
     * <code>.tensorflow.DataType tensor_dtype_value = 32;</code>
     */
    public Builder setTensorDtypeValueValue(int value) {
      kindCase_ = 32;
      kind_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Represents an enum value for dtype.
     * </pre>
     *
     * <code>.tensorflow.DataType tensor_dtype_value = 32;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents an enum value for dtype.
     * </pre>
     *
     * <code>.tensorflow.DataType tensor_dtype_value = 32;</code>
     */
    public Builder setTensorDtypeValue(org.tensorflow.proto.framework.DataType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      kindCase_ = 32;
      kind_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Represents an enum value for dtype.
     * </pre>
     *
     * <code>.tensorflow.DataType tensor_dtype_value = 32;</code>
     */
    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_;
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    public boolean hasTensorSpecValue() {
      return kindCase_ == 33;
    }
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    public org.tensorflow.proto.framework.TensorSpecProto.Builder getTensorSpecValueBuilder() {
      return getTensorSpecValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a value for tf.TensorSpec.
     * </pre>
     *
     * <code>.tensorflow.TensorSpecProto tensor_spec_value = 33;</code>
     */
    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_;
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    public boolean hasTypeSpecValue() {
      return kindCase_ == 34;
    }
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    public org.tensorflow.proto.framework.TypeSpecProto.Builder getTypeSpecValueBuilder() {
      return getTypeSpecValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a value for tf.TypeSpec.
     * </pre>
     *
     * <code>.tensorflow.TypeSpecProto type_spec_value = 34;</code>
     */
    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_;
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    public boolean hasBoundedTensorSpecValue() {
      return kindCase_ == 35;
    }
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    public org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder getBoundedTensorSpecValueBuilder() {
      return getBoundedTensorSpecValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a value for tf.BoundedTensorSpec.
     * </pre>
     *
     * <code>.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;</code>
     */
    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_;
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    public boolean hasListValue() {
      return kindCase_ == 51;
    }
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    public org.tensorflow.proto.framework.ListValue.Builder getListValueBuilder() {
      return getListValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a list of `Value`.
     * </pre>
     *
     * <code>.tensorflow.ListValue list_value = 51;</code>
     */
    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_;
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    public boolean hasTupleValue() {
      return kindCase_ == 52;
    }
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    public org.tensorflow.proto.framework.TupleValue.Builder getTupleValueBuilder() {
      return getTupleValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a tuple of `Value`.
     * </pre>
     *
     * <code>.tensorflow.TupleValue tuple_value = 52;</code>
     */
    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_;
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    public boolean hasDictValue() {
      return kindCase_ == 53;
    }
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    public org.tensorflow.proto.framework.DictValue.Builder getDictValueBuilder() {
      return getDictValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents a dict `Value`.
     * </pre>
     *
     * <code>.tensorflow.DictValue dict_value = 53;</code>
     */
    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_;
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    public boolean hasNamedTupleValue() {
      return kindCase_ == 54;
    }
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    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;
    }
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    public org.tensorflow.proto.framework.NamedTupleValue.Builder getNamedTupleValueBuilder() {
      return getNamedTupleValueFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    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();
      }
    }
    /**
     * <pre>
     * Represents Python's namedtuple.
     * </pre>
     *
     * <code>.tensorflow.NamedTupleValue named_tuple_value = 54;</code>
     */
    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<StructuredValue>
      PARSER = new com.google.protobuf.AbstractParser<StructuredValue>() {
    @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<StructuredValue> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<StructuredValue> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public org.tensorflow.proto.framework.StructuredValue getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

