// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: k8s.io/apimachinery/pkg/util/intstr/generated.proto
// Protobuf Java Version: 4.26.1

package io.kubernetes.client.proto;

public final class IntStr {
  private IntStr() {}
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 26,
      /* patch= */ 1,
      /* suffix= */ "",
      IntStr.class.getName());
  }
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface IntOrStringOrBuilder extends
      // @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.util.intstr.IntOrString)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional int64 type = 1;</code>
     * @return Whether the type field is set.
     */
    boolean hasType();
    /**
     * <code>optional int64 type = 1;</code>
     * @return The type.
     */
    long getType();

    /**
     * <code>optional int32 intVal = 2;</code>
     * @return Whether the intVal field is set.
     */
    boolean hasIntVal();
    /**
     * <code>optional int32 intVal = 2;</code>
     * @return The intVal.
     */
    int getIntVal();

    /**
     * <code>optional string strVal = 3;</code>
     * @return Whether the strVal field is set.
     */
    boolean hasStrVal();
    /**
     * <code>optional string strVal = 3;</code>
     * @return The strVal.
     */
    java.lang.String getStrVal();
    /**
     * <code>optional string strVal = 3;</code>
     * @return The bytes for strVal.
     */
    com.google.protobuf.ByteString
        getStrValBytes();
  }
  /**
   * <pre>
   * IntOrString is a type that can hold an int32 or a string.  When used in
   * JSON or YAML marshalling and unmarshalling, it produces or consumes the
   * inner type.  This allows you to have, for example, a JSON field that can
   * accept a name or number.
   * TODO: Rename to Int32OrString
   *
   * +protobuf=true
   * +protobuf.options.(gogoproto.goproto_stringer)=false
   * +k8s:openapi-gen=true
   * </pre>
   *
   * Protobuf type {@code k8s.io.apimachinery.pkg.util.intstr.IntOrString}
   */
  public static final class IntOrString extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.util.intstr.IntOrString)
      IntOrStringOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 26,
        /* patch= */ 1,
        /* suffix= */ "",
        IntOrString.class.getName());
    }
    // Use IntOrString.newBuilder() to construct.
    private IntOrString(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private IntOrString() {
      strVal_ = "";
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.kubernetes.client.proto.IntStr.internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.kubernetes.client.proto.IntStr.internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.kubernetes.client.proto.IntStr.IntOrString.class, io.kubernetes.client.proto.IntStr.IntOrString.Builder.class);
    }

    private int bitField0_;
    public static final int TYPE_FIELD_NUMBER = 1;
    private long type_ = 0L;
    /**
     * <code>optional int64 type = 1;</code>
     * @return Whether the type field is set.
     */
    @java.lang.Override
    public boolean hasType() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional int64 type = 1;</code>
     * @return The type.
     */
    @java.lang.Override
    public long getType() {
      return type_;
    }

    public static final int INTVAL_FIELD_NUMBER = 2;
    private int intVal_ = 0;
    /**
     * <code>optional int32 intVal = 2;</code>
     * @return Whether the intVal field is set.
     */
    @java.lang.Override
    public boolean hasIntVal() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional int32 intVal = 2;</code>
     * @return The intVal.
     */
    @java.lang.Override
    public int getIntVal() {
      return intVal_;
    }

    public static final int STRVAL_FIELD_NUMBER = 3;
    @SuppressWarnings("serial")
    private volatile java.lang.Object strVal_ = "";
    /**
     * <code>optional string strVal = 3;</code>
     * @return Whether the strVal field is set.
     */
    @java.lang.Override
    public boolean hasStrVal() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional string strVal = 3;</code>
     * @return The strVal.
     */
    @java.lang.Override
    public java.lang.String getStrVal() {
      java.lang.Object ref = strVal_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          strVal_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string strVal = 3;</code>
     * @return The bytes for strVal.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getStrValBytes() {
      java.lang.Object ref = strVal_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        strVal_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeInt64(1, type_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeInt32(2, intVal_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 3, strVal_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, type_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, intVal_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(3, strVal_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof io.kubernetes.client.proto.IntStr.IntOrString)) {
        return super.equals(obj);
      }
      io.kubernetes.client.proto.IntStr.IntOrString other = (io.kubernetes.client.proto.IntStr.IntOrString) obj;

      if (hasType() != other.hasType()) return false;
      if (hasType()) {
        if (getType()
            != other.getType()) return false;
      }
      if (hasIntVal() != other.hasIntVal()) return false;
      if (hasIntVal()) {
        if (getIntVal()
            != other.getIntVal()) return false;
      }
      if (hasStrVal() != other.hasStrVal()) return false;
      if (hasStrVal()) {
        if (!getStrVal()
            .equals(other.getStrVal())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasType()) {
        hash = (37 * hash) + TYPE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getType());
      }
      if (hasIntVal()) {
        hash = (37 * hash) + INTVAL_FIELD_NUMBER;
        hash = (53 * hash) + getIntVal();
      }
      if (hasStrVal()) {
        hash = (37 * hash) + STRVAL_FIELD_NUMBER;
        hash = (53 * hash) + getStrVal().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static io.kubernetes.client.proto.IntStr.IntOrString parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static io.kubernetes.client.proto.IntStr.IntOrString parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static io.kubernetes.client.proto.IntStr.IntOrString parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(io.kubernetes.client.proto.IntStr.IntOrString prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * IntOrString is a type that can hold an int32 or a string.  When used in
     * JSON or YAML marshalling and unmarshalling, it produces or consumes the
     * inner type.  This allows you to have, for example, a JSON field that can
     * accept a name or number.
     * TODO: Rename to Int32OrString
     *
     * +protobuf=true
     * +protobuf.options.(gogoproto.goproto_stringer)=false
     * +k8s:openapi-gen=true
     * </pre>
     *
     * Protobuf type {@code k8s.io.apimachinery.pkg.util.intstr.IntOrString}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.util.intstr.IntOrString)
        io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return io.kubernetes.client.proto.IntStr.internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.kubernetes.client.proto.IntStr.internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.kubernetes.client.proto.IntStr.IntOrString.class, io.kubernetes.client.proto.IntStr.IntOrString.Builder.class);
      }

      // Construct using io.kubernetes.client.proto.IntStr.IntOrString.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        type_ = 0L;
        intVal_ = 0;
        strVal_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.kubernetes.client.proto.IntStr.internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_descriptor;
      }

      @java.lang.Override
      public io.kubernetes.client.proto.IntStr.IntOrString getDefaultInstanceForType() {
        return io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance();
      }

      @java.lang.Override
      public io.kubernetes.client.proto.IntStr.IntOrString build() {
        io.kubernetes.client.proto.IntStr.IntOrString result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.kubernetes.client.proto.IntStr.IntOrString buildPartial() {
        io.kubernetes.client.proto.IntStr.IntOrString result = new io.kubernetes.client.proto.IntStr.IntOrString(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(io.kubernetes.client.proto.IntStr.IntOrString result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.type_ = type_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.intVal_ = intVal_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.strVal_ = strVal_;
          to_bitField0_ |= 0x00000004;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof io.kubernetes.client.proto.IntStr.IntOrString) {
          return mergeFrom((io.kubernetes.client.proto.IntStr.IntOrString)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.kubernetes.client.proto.IntStr.IntOrString other) {
        if (other == io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()) return this;
        if (other.hasType()) {
          setType(other.getType());
        }
        if (other.hasIntVal()) {
          setIntVal(other.getIntVal());
        }
        if (other.hasStrVal()) {
          strVal_ = other.strVal_;
          bitField0_ |= 0x00000004;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                type_ = input.readInt64();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 16: {
                intVal_ = input.readInt32();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              case 26: {
                strVal_ = input.readBytes();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private long type_ ;
      /**
       * <code>optional int64 type = 1;</code>
       * @return Whether the type field is set.
       */
      @java.lang.Override
      public boolean hasType() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional int64 type = 1;</code>
       * @return The type.
       */
      @java.lang.Override
      public long getType() {
        return type_;
      }
      /**
       * <code>optional int64 type = 1;</code>
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(long value) {

        type_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>optional int64 type = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        type_ = 0L;
        onChanged();
        return this;
      }

      private int intVal_ ;
      /**
       * <code>optional int32 intVal = 2;</code>
       * @return Whether the intVal field is set.
       */
      @java.lang.Override
      public boolean hasIntVal() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>optional int32 intVal = 2;</code>
       * @return The intVal.
       */
      @java.lang.Override
      public int getIntVal() {
        return intVal_;
      }
      /**
       * <code>optional int32 intVal = 2;</code>
       * @param value The intVal to set.
       * @return This builder for chaining.
       */
      public Builder setIntVal(int value) {

        intVal_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>optional int32 intVal = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearIntVal() {
        bitField0_ = (bitField0_ & ~0x00000002);
        intVal_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object strVal_ = "";
      /**
       * <code>optional string strVal = 3;</code>
       * @return Whether the strVal field is set.
       */
      public boolean hasStrVal() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional string strVal = 3;</code>
       * @return The strVal.
       */
      public java.lang.String getStrVal() {
        java.lang.Object ref = strVal_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            strVal_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string strVal = 3;</code>
       * @return The bytes for strVal.
       */
      public com.google.protobuf.ByteString
          getStrValBytes() {
        java.lang.Object ref = strVal_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          strVal_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string strVal = 3;</code>
       * @param value The strVal to set.
       * @return This builder for chaining.
       */
      public Builder setStrVal(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        strVal_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>optional string strVal = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearStrVal() {
        strVal_ = getDefaultInstance().getStrVal();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       * <code>optional string strVal = 3;</code>
       * @param value The bytes for strVal to set.
       * @return This builder for chaining.
       */
      public Builder setStrValBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        strVal_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.util.intstr.IntOrString)
    }

    // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.util.intstr.IntOrString)
    private static final io.kubernetes.client.proto.IntStr.IntOrString DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.kubernetes.client.proto.IntStr.IntOrString();
    }

    public static io.kubernetes.client.proto.IntStr.IntOrString getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<IntOrString>
        PARSER = new com.google.protobuf.AbstractParser<IntOrString>() {
      @java.lang.Override
      public IntOrString parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser<IntOrString> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public io.kubernetes.client.proto.IntStr.IntOrString getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n3k8s.io/apimachinery/pkg/util/intstr/ge" +
      "nerated.proto\022#k8s.io.apimachinery.pkg.u" +
      "til.intstr\";\n\013IntOrString\022\014\n\004type\030\001 \001(\003\022" +
      "\016\n\006intVal\030\002 \001(\005\022\016\n\006strVal\030\003 \001(\tBI\n\032io.ku" +
      "bernetes.client.protoB\006IntStrZ#k8s.io/ap" +
      "imachinery/pkg/util/intstr"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_k8s_io_apimachinery_pkg_util_intstr_IntOrString_descriptor,
        new java.lang.String[] { "Type", "IntVal", "StrVal", });
    descriptor.resolveAllFeaturesImmutable();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
