// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/container/v1/cluster_service.proto

package com.google.container.v1;

/**
 * <pre>
 * This operation resource represents operations that may have happened or are
 * happening on the cluster. All fields are output only.
 * </pre>
 *
 * Protobuf type {@code google.container.v1.Operation}
 */
public  final class Operation extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.container.v1.Operation)
    OperationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Operation.newBuilder() to construct.
  private Operation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Operation() {
    name_ = "";
    zone_ = "";
    operationType_ = 0;
    status_ = 0;
    detail_ = "";
    statusMessage_ = "";
    selfLink_ = "";
    targetLink_ = "";
    startTime_ = "";
    endTime_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Operation(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            name_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            zone_ = s;
            break;
          }
          case 24: {
            int rawValue = input.readEnum();

            operationType_ = rawValue;
            break;
          }
          case 32: {
            int rawValue = input.readEnum();

            status_ = rawValue;
            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();

            statusMessage_ = s;
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();

            selfLink_ = s;
            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();

            targetLink_ = s;
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            detail_ = s;
            break;
          }
          case 82: {
            java.lang.String s = input.readStringRequireUtf8();

            startTime_ = s;
            break;
          }
          case 90: {
            java.lang.String s = input.readStringRequireUtf8();

            endTime_ = s;
            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 com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.container.v1.Operation.class, com.google.container.v1.Operation.Builder.class);
  }

  /**
   * <pre>
   * Current status of the operation.
   * </pre>
   *
   * Protobuf enum {@code google.container.v1.Operation.Status}
   */
  public enum Status
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <pre>
     * Not set.
     * </pre>
     *
     * <code>STATUS_UNSPECIFIED = 0;</code>
     */
    STATUS_UNSPECIFIED(0),
    /**
     * <pre>
     * The operation has been created.
     * </pre>
     *
     * <code>PENDING = 1;</code>
     */
    PENDING(1),
    /**
     * <pre>
     * The operation is currently running.
     * </pre>
     *
     * <code>RUNNING = 2;</code>
     */
    RUNNING(2),
    /**
     * <pre>
     * The operation is done, either cancelled or completed.
     * </pre>
     *
     * <code>DONE = 3;</code>
     */
    DONE(3),
    /**
     * <pre>
     * The operation is aborting.
     * </pre>
     *
     * <code>ABORTING = 4;</code>
     */
    ABORTING(4),
    UNRECOGNIZED(-1),
    ;

    /**
     * <pre>
     * Not set.
     * </pre>
     *
     * <code>STATUS_UNSPECIFIED = 0;</code>
     */
    public static final int STATUS_UNSPECIFIED_VALUE = 0;
    /**
     * <pre>
     * The operation has been created.
     * </pre>
     *
     * <code>PENDING = 1;</code>
     */
    public static final int PENDING_VALUE = 1;
    /**
     * <pre>
     * The operation is currently running.
     * </pre>
     *
     * <code>RUNNING = 2;</code>
     */
    public static final int RUNNING_VALUE = 2;
    /**
     * <pre>
     * The operation is done, either cancelled or completed.
     * </pre>
     *
     * <code>DONE = 3;</code>
     */
    public static final int DONE_VALUE = 3;
    /**
     * <pre>
     * The operation is aborting.
     * </pre>
     *
     * <code>ABORTING = 4;</code>
     */
    public static final int ABORTING_VALUE = 4;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Status valueOf(int value) {
      return forNumber(value);
    }

    public static Status forNumber(int value) {
      switch (value) {
        case 0: return STATUS_UNSPECIFIED;
        case 1: return PENDING;
        case 2: return RUNNING;
        case 3: return DONE;
        case 4: return ABORTING;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Status>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Status> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<Status>() {
            public Status findValueByNumber(int number) {
              return Status.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.google.container.v1.Operation.getDescriptor().getEnumTypes().get(0);
    }

    private static final Status[] VALUES = values();

    public static Status valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Status(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.container.v1.Operation.Status)
  }

  /**
   * <pre>
   * Operation type.
   * </pre>
   *
   * Protobuf enum {@code google.container.v1.Operation.Type}
   */
  public enum Type
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <pre>
     * Not set.
     * </pre>
     *
     * <code>TYPE_UNSPECIFIED = 0;</code>
     */
    TYPE_UNSPECIFIED(0),
    /**
     * <pre>
     * Cluster create.
     * </pre>
     *
     * <code>CREATE_CLUSTER = 1;</code>
     */
    CREATE_CLUSTER(1),
    /**
     * <pre>
     * Cluster delete.
     * </pre>
     *
     * <code>DELETE_CLUSTER = 2;</code>
     */
    DELETE_CLUSTER(2),
    /**
     * <pre>
     * A master upgrade.
     * </pre>
     *
     * <code>UPGRADE_MASTER = 3;</code>
     */
    UPGRADE_MASTER(3),
    /**
     * <pre>
     * A node upgrade.
     * </pre>
     *
     * <code>UPGRADE_NODES = 4;</code>
     */
    UPGRADE_NODES(4),
    /**
     * <pre>
     * Cluster repair.
     * </pre>
     *
     * <code>REPAIR_CLUSTER = 5;</code>
     */
    REPAIR_CLUSTER(5),
    /**
     * <pre>
     * Cluster update.
     * </pre>
     *
     * <code>UPDATE_CLUSTER = 6;</code>
     */
    UPDATE_CLUSTER(6),
    /**
     * <pre>
     * Node pool create.
     * </pre>
     *
     * <code>CREATE_NODE_POOL = 7;</code>
     */
    CREATE_NODE_POOL(7),
    /**
     * <pre>
     * Node pool delete.
     * </pre>
     *
     * <code>DELETE_NODE_POOL = 8;</code>
     */
    DELETE_NODE_POOL(8),
    /**
     * <pre>
     * Set node pool management.
     * </pre>
     *
     * <code>SET_NODE_POOL_MANAGEMENT = 9;</code>
     */
    SET_NODE_POOL_MANAGEMENT(9),
    /**
     * <pre>
     * Automatic node pool repair.
     * </pre>
     *
     * <code>AUTO_REPAIR_NODES = 10;</code>
     */
    AUTO_REPAIR_NODES(10),
    /**
     * <pre>
     * Automatic node upgrade.
     * </pre>
     *
     * <code>AUTO_UPGRADE_NODES = 11;</code>
     */
    AUTO_UPGRADE_NODES(11),
    /**
     * <pre>
     * Set labels.
     * </pre>
     *
     * <code>SET_LABELS = 12;</code>
     */
    SET_LABELS(12),
    /**
     * <pre>
     * Set/generate master auth materials
     * </pre>
     *
     * <code>SET_MASTER_AUTH = 13;</code>
     */
    SET_MASTER_AUTH(13),
    /**
     * <pre>
     * Set node pool size.
     * </pre>
     *
     * <code>SET_NODE_POOL_SIZE = 14;</code>
     */
    SET_NODE_POOL_SIZE(14),
    /**
     * <pre>
     * Updates network policy for a cluster.
     * </pre>
     *
     * <code>SET_NETWORK_POLICY = 15;</code>
     */
    SET_NETWORK_POLICY(15),
    /**
     * <pre>
     * Set the maintenance policy.
     * </pre>
     *
     * <code>SET_MAINTENANCE_POLICY = 16;</code>
     */
    SET_MAINTENANCE_POLICY(16),
    UNRECOGNIZED(-1),
    ;

    /**
     * <pre>
     * Not set.
     * </pre>
     *
     * <code>TYPE_UNSPECIFIED = 0;</code>
     */
    public static final int TYPE_UNSPECIFIED_VALUE = 0;
    /**
     * <pre>
     * Cluster create.
     * </pre>
     *
     * <code>CREATE_CLUSTER = 1;</code>
     */
    public static final int CREATE_CLUSTER_VALUE = 1;
    /**
     * <pre>
     * Cluster delete.
     * </pre>
     *
     * <code>DELETE_CLUSTER = 2;</code>
     */
    public static final int DELETE_CLUSTER_VALUE = 2;
    /**
     * <pre>
     * A master upgrade.
     * </pre>
     *
     * <code>UPGRADE_MASTER = 3;</code>
     */
    public static final int UPGRADE_MASTER_VALUE = 3;
    /**
     * <pre>
     * A node upgrade.
     * </pre>
     *
     * <code>UPGRADE_NODES = 4;</code>
     */
    public static final int UPGRADE_NODES_VALUE = 4;
    /**
     * <pre>
     * Cluster repair.
     * </pre>
     *
     * <code>REPAIR_CLUSTER = 5;</code>
     */
    public static final int REPAIR_CLUSTER_VALUE = 5;
    /**
     * <pre>
     * Cluster update.
     * </pre>
     *
     * <code>UPDATE_CLUSTER = 6;</code>
     */
    public static final int UPDATE_CLUSTER_VALUE = 6;
    /**
     * <pre>
     * Node pool create.
     * </pre>
     *
     * <code>CREATE_NODE_POOL = 7;</code>
     */
    public static final int CREATE_NODE_POOL_VALUE = 7;
    /**
     * <pre>
     * Node pool delete.
     * </pre>
     *
     * <code>DELETE_NODE_POOL = 8;</code>
     */
    public static final int DELETE_NODE_POOL_VALUE = 8;
    /**
     * <pre>
     * Set node pool management.
     * </pre>
     *
     * <code>SET_NODE_POOL_MANAGEMENT = 9;</code>
     */
    public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9;
    /**
     * <pre>
     * Automatic node pool repair.
     * </pre>
     *
     * <code>AUTO_REPAIR_NODES = 10;</code>
     */
    public static final int AUTO_REPAIR_NODES_VALUE = 10;
    /**
     * <pre>
     * Automatic node upgrade.
     * </pre>
     *
     * <code>AUTO_UPGRADE_NODES = 11;</code>
     */
    public static final int AUTO_UPGRADE_NODES_VALUE = 11;
    /**
     * <pre>
     * Set labels.
     * </pre>
     *
     * <code>SET_LABELS = 12;</code>
     */
    public static final int SET_LABELS_VALUE = 12;
    /**
     * <pre>
     * Set/generate master auth materials
     * </pre>
     *
     * <code>SET_MASTER_AUTH = 13;</code>
     */
    public static final int SET_MASTER_AUTH_VALUE = 13;
    /**
     * <pre>
     * Set node pool size.
     * </pre>
     *
     * <code>SET_NODE_POOL_SIZE = 14;</code>
     */
    public static final int SET_NODE_POOL_SIZE_VALUE = 14;
    /**
     * <pre>
     * Updates network policy for a cluster.
     * </pre>
     *
     * <code>SET_NETWORK_POLICY = 15;</code>
     */
    public static final int SET_NETWORK_POLICY_VALUE = 15;
    /**
     * <pre>
     * Set the maintenance policy.
     * </pre>
     *
     * <code>SET_MAINTENANCE_POLICY = 16;</code>
     */
    public static final int SET_MAINTENANCE_POLICY_VALUE = 16;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Type valueOf(int value) {
      return forNumber(value);
    }

    public static Type forNumber(int value) {
      switch (value) {
        case 0: return TYPE_UNSPECIFIED;
        case 1: return CREATE_CLUSTER;
        case 2: return DELETE_CLUSTER;
        case 3: return UPGRADE_MASTER;
        case 4: return UPGRADE_NODES;
        case 5: return REPAIR_CLUSTER;
        case 6: return UPDATE_CLUSTER;
        case 7: return CREATE_NODE_POOL;
        case 8: return DELETE_NODE_POOL;
        case 9: return SET_NODE_POOL_MANAGEMENT;
        case 10: return AUTO_REPAIR_NODES;
        case 11: return AUTO_UPGRADE_NODES;
        case 12: return SET_LABELS;
        case 13: return SET_MASTER_AUTH;
        case 14: return SET_NODE_POOL_SIZE;
        case 15: return SET_NETWORK_POLICY;
        case 16: return SET_MAINTENANCE_POLICY;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Type>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Type> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<Type>() {
            public Type findValueByNumber(int number) {
              return Type.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.google.container.v1.Operation.getDescriptor().getEnumTypes().get(1);
    }

    private static final Type[] VALUES = values();

    public static Type valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Type(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.container.v1.Operation.Type)
  }

  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * <pre>
   * The server-assigned ID for the operation.
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * The server-assigned ID for the operation.
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  public com.google.protobuf.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ZONE_FIELD_NUMBER = 2;
  private volatile java.lang.Object zone_;
  /**
   * <pre>
   * The name of the Google Compute Engine
   * [zone](/compute/docs/zones#available) in which the operation
   * is taking place.
   * </pre>
   *
   * <code>string zone = 2;</code>
   */
  public java.lang.String getZone() {
    java.lang.Object ref = zone_;
    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();
      zone_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * The name of the Google Compute Engine
   * [zone](/compute/docs/zones#available) in which the operation
   * is taking place.
   * </pre>
   *
   * <code>string zone = 2;</code>
   */
  public com.google.protobuf.ByteString
      getZoneBytes() {
    java.lang.Object ref = zone_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      zone_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OPERATION_TYPE_FIELD_NUMBER = 3;
  private int operationType_;
  /**
   * <pre>
   * The operation type.
   * </pre>
   *
   * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
   */
  public int getOperationTypeValue() {
    return operationType_;
  }
  /**
   * <pre>
   * The operation type.
   * </pre>
   *
   * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
   */
  public com.google.container.v1.Operation.Type getOperationType() {
    com.google.container.v1.Operation.Type result = com.google.container.v1.Operation.Type.valueOf(operationType_);
    return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result;
  }

  public static final int STATUS_FIELD_NUMBER = 4;
  private int status_;
  /**
   * <pre>
   * The current status of the operation.
   * </pre>
   *
   * <code>.google.container.v1.Operation.Status status = 4;</code>
   */
  public int getStatusValue() {
    return status_;
  }
  /**
   * <pre>
   * The current status of the operation.
   * </pre>
   *
   * <code>.google.container.v1.Operation.Status status = 4;</code>
   */
  public com.google.container.v1.Operation.Status getStatus() {
    com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.valueOf(status_);
    return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result;
  }

  public static final int DETAIL_FIELD_NUMBER = 8;
  private volatile java.lang.Object detail_;
  /**
   * <pre>
   * Detailed operation progress, if available.
   * </pre>
   *
   * <code>string detail = 8;</code>
   */
  public java.lang.String getDetail() {
    java.lang.Object ref = detail_;
    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();
      detail_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Detailed operation progress, if available.
   * </pre>
   *
   * <code>string detail = 8;</code>
   */
  public com.google.protobuf.ByteString
      getDetailBytes() {
    java.lang.Object ref = detail_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      detail_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATUS_MESSAGE_FIELD_NUMBER = 5;
  private volatile java.lang.Object statusMessage_;
  /**
   * <pre>
   * If an error has occurred, a textual description of the error.
   * </pre>
   *
   * <code>string status_message = 5;</code>
   */
  public java.lang.String getStatusMessage() {
    java.lang.Object ref = statusMessage_;
    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();
      statusMessage_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * If an error has occurred, a textual description of the error.
   * </pre>
   *
   * <code>string status_message = 5;</code>
   */
  public com.google.protobuf.ByteString
      getStatusMessageBytes() {
    java.lang.Object ref = statusMessage_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      statusMessage_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SELF_LINK_FIELD_NUMBER = 6;
  private volatile java.lang.Object selfLink_;
  /**
   * <pre>
   * Server-defined URL for the resource.
   * </pre>
   *
   * <code>string self_link = 6;</code>
   */
  public java.lang.String getSelfLink() {
    java.lang.Object ref = selfLink_;
    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();
      selfLink_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Server-defined URL for the resource.
   * </pre>
   *
   * <code>string self_link = 6;</code>
   */
  public com.google.protobuf.ByteString
      getSelfLinkBytes() {
    java.lang.Object ref = selfLink_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      selfLink_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TARGET_LINK_FIELD_NUMBER = 7;
  private volatile java.lang.Object targetLink_;
  /**
   * <pre>
   * Server-defined URL for the target of the operation.
   * </pre>
   *
   * <code>string target_link = 7;</code>
   */
  public java.lang.String getTargetLink() {
    java.lang.Object ref = targetLink_;
    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();
      targetLink_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Server-defined URL for the target of the operation.
   * </pre>
   *
   * <code>string target_link = 7;</code>
   */
  public com.google.protobuf.ByteString
      getTargetLinkBytes() {
    java.lang.Object ref = targetLink_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      targetLink_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int START_TIME_FIELD_NUMBER = 10;
  private volatile java.lang.Object startTime_;
  /**
   * <pre>
   * [Output only] The time the operation started, in
   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
   * </pre>
   *
   * <code>string start_time = 10;</code>
   */
  public java.lang.String getStartTime() {
    java.lang.Object ref = startTime_;
    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();
      startTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * [Output only] The time the operation started, in
   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
   * </pre>
   *
   * <code>string start_time = 10;</code>
   */
  public com.google.protobuf.ByteString
      getStartTimeBytes() {
    java.lang.Object ref = startTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      startTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int END_TIME_FIELD_NUMBER = 11;
  private volatile java.lang.Object endTime_;
  /**
   * <pre>
   * [Output only] The time the operation completed, in
   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
   * </pre>
   *
   * <code>string end_time = 11;</code>
   */
  public java.lang.String getEndTime() {
    java.lang.Object ref = endTime_;
    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();
      endTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * [Output only] The time the operation completed, in
   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
   * </pre>
   *
   * <code>string end_time = 11;</code>
   */
  public com.google.protobuf.ByteString
      getEndTimeBytes() {
    java.lang.Object ref = endTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      endTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!getZoneBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
    }
    if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(3, operationType_);
    }
    if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) {
      output.writeEnum(4, status_);
    }
    if (!getStatusMessageBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_);
    }
    if (!getSelfLinkBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_);
    }
    if (!getTargetLinkBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_);
    }
    if (!getDetailBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_);
    }
    if (!getStartTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_);
    }
    if (!getEndTimeBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_);
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!getZoneBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
    }
    if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(3, operationType_);
    }
    if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(4, status_);
    }
    if (!getStatusMessageBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_);
    }
    if (!getSelfLinkBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_);
    }
    if (!getTargetLinkBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_);
    }
    if (!getDetailBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_);
    }
    if (!getStartTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_);
    }
    if (!getEndTimeBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.google.container.v1.Operation)) {
      return super.equals(obj);
    }
    com.google.container.v1.Operation other = (com.google.container.v1.Operation) obj;

    boolean result = true;
    result = result && getName()
        .equals(other.getName());
    result = result && getZone()
        .equals(other.getZone());
    result = result && operationType_ == other.operationType_;
    result = result && status_ == other.status_;
    result = result && getDetail()
        .equals(other.getDetail());
    result = result && getStatusMessage()
        .equals(other.getStatusMessage());
    result = result && getSelfLink()
        .equals(other.getSelfLink());
    result = result && getTargetLink()
        .equals(other.getTargetLink());
    result = result && getStartTime()
        .equals(other.getStartTime());
    result = result && getEndTime()
        .equals(other.getEndTime());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + ZONE_FIELD_NUMBER;
    hash = (53 * hash) + getZone().hashCode();
    hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + operationType_;
    hash = (37 * hash) + STATUS_FIELD_NUMBER;
    hash = (53 * hash) + status_;
    hash = (37 * hash) + DETAIL_FIELD_NUMBER;
    hash = (53 * hash) + getDetail().hashCode();
    hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER;
    hash = (53 * hash) + getStatusMessage().hashCode();
    hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
    hash = (53 * hash) + getSelfLink().hashCode();
    hash = (37 * hash) + TARGET_LINK_FIELD_NUMBER;
    hash = (53 * hash) + getTargetLink().hashCode();
    hash = (37 * hash) + START_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartTime().hashCode();
    hash = (37 * hash) + END_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getEndTime().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.container.v1.Operation parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.Operation parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.container.v1.Operation parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.Operation parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.container.v1.Operation parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.container.v1.Operation parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.container.v1.Operation parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.container.v1.Operation parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.container.v1.Operation parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.container.v1.Operation parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.container.v1.Operation parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.container.v1.Operation parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.container.v1.Operation prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new 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>
   * This operation resource represents operations that may have happened or are
   * happening on the cluster. All fields are output only.
   * </pre>
   *
   * Protobuf type {@code google.container.v1.Operation}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.container.v1.Operation)
      com.google.container.v1.OperationOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.container.v1.Operation.class, com.google.container.v1.Operation.Builder.class);
    }

    // Construct using com.google.container.v1.Operation.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      name_ = "";

      zone_ = "";

      operationType_ = 0;

      status_ = 0;

      detail_ = "";

      statusMessage_ = "";

      selfLink_ = "";

      targetLink_ = "";

      startTime_ = "";

      endTime_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_descriptor;
    }

    public com.google.container.v1.Operation getDefaultInstanceForType() {
      return com.google.container.v1.Operation.getDefaultInstance();
    }

    public com.google.container.v1.Operation build() {
      com.google.container.v1.Operation result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.container.v1.Operation buildPartial() {
      com.google.container.v1.Operation result = new com.google.container.v1.Operation(this);
      result.name_ = name_;
      result.zone_ = zone_;
      result.operationType_ = operationType_;
      result.status_ = status_;
      result.detail_ = detail_;
      result.statusMessage_ = statusMessage_;
      result.selfLink_ = selfLink_;
      result.targetLink_ = targetLink_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.container.v1.Operation) {
        return mergeFrom((com.google.container.v1.Operation)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.container.v1.Operation other) {
      if (other == com.google.container.v1.Operation.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (!other.getZone().isEmpty()) {
        zone_ = other.zone_;
        onChanged();
      }
      if (other.operationType_ != 0) {
        setOperationTypeValue(other.getOperationTypeValue());
      }
      if (other.status_ != 0) {
        setStatusValue(other.getStatusValue());
      }
      if (!other.getDetail().isEmpty()) {
        detail_ = other.detail_;
        onChanged();
      }
      if (!other.getStatusMessage().isEmpty()) {
        statusMessage_ = other.statusMessage_;
        onChanged();
      }
      if (!other.getSelfLink().isEmpty()) {
        selfLink_ = other.selfLink_;
        onChanged();
      }
      if (!other.getTargetLink().isEmpty()) {
        targetLink_ = other.targetLink_;
        onChanged();
      }
      if (!other.getStartTime().isEmpty()) {
        startTime_ = other.startTime_;
        onChanged();
      }
      if (!other.getEndTime().isEmpty()) {
        endTime_ = other.endTime_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.container.v1.Operation parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.container.v1.Operation) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object name_ = "";
    /**
     * <pre>
     * The server-assigned ID for the operation.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * The server-assigned ID for the operation.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * The server-assigned ID for the operation.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder setName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      name_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The server-assigned ID for the operation.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder clearName() {
      
      name_ = getDefaultInstance().getName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The server-assigned ID for the operation.
     * </pre>
     *
     * <code>string name = 1;</code>
     */
    public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      name_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object zone_ = "";
    /**
     * <pre>
     * The name of the Google Compute Engine
     * [zone](/compute/docs/zones#available) in which the operation
     * is taking place.
     * </pre>
     *
     * <code>string zone = 2;</code>
     */
    public java.lang.String getZone() {
      java.lang.Object ref = zone_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        zone_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * The name of the Google Compute Engine
     * [zone](/compute/docs/zones#available) in which the operation
     * is taking place.
     * </pre>
     *
     * <code>string zone = 2;</code>
     */
    public com.google.protobuf.ByteString
        getZoneBytes() {
      java.lang.Object ref = zone_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        zone_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * The name of the Google Compute Engine
     * [zone](/compute/docs/zones#available) in which the operation
     * is taking place.
     * </pre>
     *
     * <code>string zone = 2;</code>
     */
    public Builder setZone(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      zone_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The name of the Google Compute Engine
     * [zone](/compute/docs/zones#available) in which the operation
     * is taking place.
     * </pre>
     *
     * <code>string zone = 2;</code>
     */
    public Builder clearZone() {
      
      zone_ = getDefaultInstance().getZone();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The name of the Google Compute Engine
     * [zone](/compute/docs/zones#available) in which the operation
     * is taking place.
     * </pre>
     *
     * <code>string zone = 2;</code>
     */
    public Builder setZoneBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      zone_ = value;
      onChanged();
      return this;
    }

    private int operationType_ = 0;
    /**
     * <pre>
     * The operation type.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
     */
    public int getOperationTypeValue() {
      return operationType_;
    }
    /**
     * <pre>
     * The operation type.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
     */
    public Builder setOperationTypeValue(int value) {
      operationType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The operation type.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
     */
    public com.google.container.v1.Operation.Type getOperationType() {
      com.google.container.v1.Operation.Type result = com.google.container.v1.Operation.Type.valueOf(operationType_);
      return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * The operation type.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
     */
    public Builder setOperationType(com.google.container.v1.Operation.Type value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      operationType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The operation type.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Type operation_type = 3;</code>
     */
    public Builder clearOperationType() {
      
      operationType_ = 0;
      onChanged();
      return this;
    }

    private int status_ = 0;
    /**
     * <pre>
     * The current status of the operation.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Status status = 4;</code>
     */
    public int getStatusValue() {
      return status_;
    }
    /**
     * <pre>
     * The current status of the operation.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Status status = 4;</code>
     */
    public Builder setStatusValue(int value) {
      status_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The current status of the operation.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Status status = 4;</code>
     */
    public com.google.container.v1.Operation.Status getStatus() {
      com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.valueOf(status_);
      return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * The current status of the operation.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Status status = 4;</code>
     */
    public Builder setStatus(com.google.container.v1.Operation.Status value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      status_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The current status of the operation.
     * </pre>
     *
     * <code>.google.container.v1.Operation.Status status = 4;</code>
     */
    public Builder clearStatus() {
      
      status_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object detail_ = "";
    /**
     * <pre>
     * Detailed operation progress, if available.
     * </pre>
     *
     * <code>string detail = 8;</code>
     */
    public java.lang.String getDetail() {
      java.lang.Object ref = detail_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        detail_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Detailed operation progress, if available.
     * </pre>
     *
     * <code>string detail = 8;</code>
     */
    public com.google.protobuf.ByteString
        getDetailBytes() {
      java.lang.Object ref = detail_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        detail_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Detailed operation progress, if available.
     * </pre>
     *
     * <code>string detail = 8;</code>
     */
    public Builder setDetail(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      detail_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Detailed operation progress, if available.
     * </pre>
     *
     * <code>string detail = 8;</code>
     */
    public Builder clearDetail() {
      
      detail_ = getDefaultInstance().getDetail();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Detailed operation progress, if available.
     * </pre>
     *
     * <code>string detail = 8;</code>
     */
    public Builder setDetailBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      detail_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object statusMessage_ = "";
    /**
     * <pre>
     * If an error has occurred, a textual description of the error.
     * </pre>
     *
     * <code>string status_message = 5;</code>
     */
    public java.lang.String getStatusMessage() {
      java.lang.Object ref = statusMessage_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        statusMessage_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * If an error has occurred, a textual description of the error.
     * </pre>
     *
     * <code>string status_message = 5;</code>
     */
    public com.google.protobuf.ByteString
        getStatusMessageBytes() {
      java.lang.Object ref = statusMessage_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusMessage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * If an error has occurred, a textual description of the error.
     * </pre>
     *
     * <code>string status_message = 5;</code>
     */
    public Builder setStatusMessage(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      statusMessage_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * If an error has occurred, a textual description of the error.
     * </pre>
     *
     * <code>string status_message = 5;</code>
     */
    public Builder clearStatusMessage() {
      
      statusMessage_ = getDefaultInstance().getStatusMessage();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * If an error has occurred, a textual description of the error.
     * </pre>
     *
     * <code>string status_message = 5;</code>
     */
    public Builder setStatusMessageBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      statusMessage_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object selfLink_ = "";
    /**
     * <pre>
     * Server-defined URL for the resource.
     * </pre>
     *
     * <code>string self_link = 6;</code>
     */
    public java.lang.String getSelfLink() {
      java.lang.Object ref = selfLink_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        selfLink_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Server-defined URL for the resource.
     * </pre>
     *
     * <code>string self_link = 6;</code>
     */
    public com.google.protobuf.ByteString
        getSelfLinkBytes() {
      java.lang.Object ref = selfLink_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        selfLink_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Server-defined URL for the resource.
     * </pre>
     *
     * <code>string self_link = 6;</code>
     */
    public Builder setSelfLink(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      selfLink_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Server-defined URL for the resource.
     * </pre>
     *
     * <code>string self_link = 6;</code>
     */
    public Builder clearSelfLink() {
      
      selfLink_ = getDefaultInstance().getSelfLink();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Server-defined URL for the resource.
     * </pre>
     *
     * <code>string self_link = 6;</code>
     */
    public Builder setSelfLinkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      selfLink_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object targetLink_ = "";
    /**
     * <pre>
     * Server-defined URL for the target of the operation.
     * </pre>
     *
     * <code>string target_link = 7;</code>
     */
    public java.lang.String getTargetLink() {
      java.lang.Object ref = targetLink_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        targetLink_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Server-defined URL for the target of the operation.
     * </pre>
     *
     * <code>string target_link = 7;</code>
     */
    public com.google.protobuf.ByteString
        getTargetLinkBytes() {
      java.lang.Object ref = targetLink_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        targetLink_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Server-defined URL for the target of the operation.
     * </pre>
     *
     * <code>string target_link = 7;</code>
     */
    public Builder setTargetLink(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      targetLink_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Server-defined URL for the target of the operation.
     * </pre>
     *
     * <code>string target_link = 7;</code>
     */
    public Builder clearTargetLink() {
      
      targetLink_ = getDefaultInstance().getTargetLink();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Server-defined URL for the target of the operation.
     * </pre>
     *
     * <code>string target_link = 7;</code>
     */
    public Builder setTargetLinkBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      targetLink_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object startTime_ = "";
    /**
     * <pre>
     * [Output only] The time the operation started, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string start_time = 10;</code>
     */
    public java.lang.String getStartTime() {
      java.lang.Object ref = startTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        startTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * [Output only] The time the operation started, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string start_time = 10;</code>
     */
    public com.google.protobuf.ByteString
        getStartTimeBytes() {
      java.lang.Object ref = startTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        startTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * [Output only] The time the operation started, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string start_time = 10;</code>
     */
    public Builder setStartTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      startTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * [Output only] The time the operation started, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string start_time = 10;</code>
     */
    public Builder clearStartTime() {
      
      startTime_ = getDefaultInstance().getStartTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * [Output only] The time the operation started, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string start_time = 10;</code>
     */
    public Builder setStartTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      startTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object endTime_ = "";
    /**
     * <pre>
     * [Output only] The time the operation completed, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string end_time = 11;</code>
     */
    public java.lang.String getEndTime() {
      java.lang.Object ref = endTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        endTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * [Output only] The time the operation completed, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string end_time = 11;</code>
     */
    public com.google.protobuf.ByteString
        getEndTimeBytes() {
      java.lang.Object ref = endTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        endTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * [Output only] The time the operation completed, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string end_time = 11;</code>
     */
    public Builder setEndTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      endTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * [Output only] The time the operation completed, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string end_time = 11;</code>
     */
    public Builder clearEndTime() {
      
      endTime_ = getDefaultInstance().getEndTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * [Output only] The time the operation completed, in
     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * </pre>
     *
     * <code>string end_time = 11;</code>
     */
    public Builder setEndTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      endTime_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:google.container.v1.Operation)
  }

  // @@protoc_insertion_point(class_scope:google.container.v1.Operation)
  private static final com.google.container.v1.Operation DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.container.v1.Operation();
  }

  public static com.google.container.v1.Operation getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Operation>
      PARSER = new com.google.protobuf.AbstractParser<Operation>() {
    public Operation parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Operation(input, extensionRegistry);
    }
  };

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

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

  public com.google.container.v1.Operation getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

