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

package com.google.cloud.compute.v1;

/**
 *
 *
 * <pre>
 * This is deprecated and has no effect. Do not use.
 * </pre>
 *
 * Protobuf type {@code google.cloud.compute.v1.Rule}
 */
public final class Rule extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.Rule)
    RuleOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Rule.newBuilder() to construct.
  private Rule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Rule() {
    action_ = "";
    conditions_ = java.util.Collections.emptyList();
    description_ = "";
    ins_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    logConfigs_ = java.util.Collections.emptyList();
    notIns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.compute.v1.Compute
        .internal_static_google_cloud_compute_v1_Rule_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.compute.v1.Compute
        .internal_static_google_cloud_compute_v1_Rule_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.compute.v1.Rule.class, com.google.cloud.compute.v1.Rule.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.compute.v1.Rule.Action}
   */
  public enum Action implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * A value indicating that the enum field is not set.
     * </pre>
     *
     * <code>UNDEFINED_ACTION = 0;</code>
     */
    UNDEFINED_ACTION(0),
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>ALLOW = 62368553;</code>
     */
    ALLOW(62368553),
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>ALLOW_WITH_LOG = 76034177;</code>
     */
    ALLOW_WITH_LOG(76034177),
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>DENY = 2094604;</code>
     */
    DENY(2094604),
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>DENY_WITH_LOG = 351433982;</code>
     */
    DENY_WITH_LOG(351433982),
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>LOG = 75556;</code>
     */
    LOG(75556),
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>NO_ACTION = 260643444;</code>
     */
    NO_ACTION(260643444),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * A value indicating that the enum field is not set.
     * </pre>
     *
     * <code>UNDEFINED_ACTION = 0;</code>
     */
    public static final int UNDEFINED_ACTION_VALUE = 0;
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>ALLOW = 62368553;</code>
     */
    public static final int ALLOW_VALUE = 62368553;
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>ALLOW_WITH_LOG = 76034177;</code>
     */
    public static final int ALLOW_WITH_LOG_VALUE = 76034177;
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>DENY = 2094604;</code>
     */
    public static final int DENY_VALUE = 2094604;
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>DENY_WITH_LOG = 351433982;</code>
     */
    public static final int DENY_WITH_LOG_VALUE = 351433982;
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>LOG = 75556;</code>
     */
    public static final int LOG_VALUE = 75556;
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>NO_ACTION = 260643444;</code>
     */
    public static final int NO_ACTION_VALUE = 260643444;

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

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Action valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Action forNumber(int value) {
      switch (value) {
        case 0:
          return UNDEFINED_ACTION;
        case 62368553:
          return ALLOW;
        case 76034177:
          return ALLOW_WITH_LOG;
        case 2094604:
          return DENY;
        case 351433982:
          return DENY_WITH_LOG;
        case 75556:
          return LOG;
        case 260643444:
          return NO_ACTION;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<Action> internalGetValueMap() {
      return internalValueMap;
    }

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

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.compute.v1.Rule.getDescriptor().getEnumTypes().get(0);
    }

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

    public static Action 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 Action(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Rule.Action)
  }

  private int bitField0_;
  public static final int ACTION_FIELD_NUMBER = 187661878;

  @SuppressWarnings("serial")
  private volatile java.lang.Object action_ = "";
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * Check the Action enum for the list of possible values.
   * </pre>
   *
   * <code>optional string action = 187661878;</code>
   *
   * @return Whether the action field is set.
   */
  @java.lang.Override
  public boolean hasAction() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * Check the Action enum for the list of possible values.
   * </pre>
   *
   * <code>optional string action = 187661878;</code>
   *
   * @return The action.
   */
  @java.lang.Override
  public java.lang.String getAction() {
    java.lang.Object ref = action_;
    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();
      action_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * Check the Action enum for the list of possible values.
   * </pre>
   *
   * <code>optional string action = 187661878;</code>
   *
   * @return The bytes for action.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getActionBytes() {
    java.lang.Object ref = action_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      action_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONDITIONS_FIELD_NUMBER = 142882488;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.compute.v1.Condition> conditions_;
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.compute.v1.Condition> getConditionsList() {
    return conditions_;
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.compute.v1.ConditionOrBuilder>
      getConditionsOrBuilderList() {
    return conditions_;
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
   */
  @java.lang.Override
  public int getConditionsCount() {
    return conditions_.size();
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
   */
  @java.lang.Override
  public com.google.cloud.compute.v1.Condition getConditions(int index) {
    return conditions_.get(index);
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
   */
  @java.lang.Override
  public com.google.cloud.compute.v1.ConditionOrBuilder getConditionsOrBuilder(int index) {
    return conditions_.get(index);
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 422937596;

  @SuppressWarnings("serial")
  private volatile java.lang.Object description_ = "";
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return Whether the description field is set.
   */
  @java.lang.Override
  public boolean hasDescription() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return The description.
   */
  @java.lang.Override
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      description_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>optional string description = 422937596;</code>
   *
   * @return The bytes for description.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INS_FIELD_NUMBER = 104430;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList ins_;
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string ins = 104430;</code>
   *
   * @return A list containing the ins.
   */
  public com.google.protobuf.ProtocolStringList getInsList() {
    return ins_;
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string ins = 104430;</code>
   *
   * @return The count of ins.
   */
  public int getInsCount() {
    return ins_.size();
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string ins = 104430;</code>
   *
   * @param index The index of the element to return.
   * @return The ins at the given index.
   */
  public java.lang.String getIns(int index) {
    return ins_.get(index);
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string ins = 104430;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the ins at the given index.
   */
  public com.google.protobuf.ByteString getInsBytes(int index) {
    return ins_.getByteString(index);
  }

  public static final int LOG_CONFIGS_FIELD_NUMBER = 152873846;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.compute.v1.LogConfig> logConfigs_;
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.compute.v1.LogConfig> getLogConfigsList() {
    return logConfigs_;
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.compute.v1.LogConfigOrBuilder>
      getLogConfigsOrBuilderList() {
    return logConfigs_;
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
   */
  @java.lang.Override
  public int getLogConfigsCount() {
    return logConfigs_.size();
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
   */
  @java.lang.Override
  public com.google.cloud.compute.v1.LogConfig getLogConfigs(int index) {
    return logConfigs_.get(index);
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
   */
  @java.lang.Override
  public com.google.cloud.compute.v1.LogConfigOrBuilder getLogConfigsOrBuilder(int index) {
    return logConfigs_.get(index);
  }

  public static final int NOT_INS_FIELD_NUMBER = 518443138;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList notIns_;
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string not_ins = 518443138;</code>
   *
   * @return A list containing the notIns.
   */
  public com.google.protobuf.ProtocolStringList getNotInsList() {
    return notIns_;
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string not_ins = 518443138;</code>
   *
   * @return The count of notIns.
   */
  public int getNotInsCount() {
    return notIns_.size();
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string not_ins = 518443138;</code>
   *
   * @param index The index of the element to return.
   * @return The notIns at the given index.
   */
  public java.lang.String getNotIns(int index) {
    return notIns_.get(index);
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string not_ins = 518443138;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the notIns at the given index.
   */
  public com.google.protobuf.ByteString getNotInsBytes(int index) {
    return notIns_.getByteString(index);
  }

  public static final int PERMISSIONS_FIELD_NUMBER = 59962500;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList permissions_;
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string permissions = 59962500;</code>
   *
   * @return A list containing the permissions.
   */
  public com.google.protobuf.ProtocolStringList getPermissionsList() {
    return permissions_;
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string permissions = 59962500;</code>
   *
   * @return The count of permissions.
   */
  public int getPermissionsCount() {
    return permissions_.size();
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string permissions = 59962500;</code>
   *
   * @param index The index of the element to return.
   * @return The permissions at the given index.
   */
  public java.lang.String getPermissions(int index) {
    return permissions_.get(index);
  }
  /**
   *
   *
   * <pre>
   * This is deprecated and has no effect. Do not use.
   * </pre>
   *
   * <code>repeated string permissions = 59962500;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the permissions at the given index.
   */
  public com.google.protobuf.ByteString getPermissionsBytes(int index) {
    return permissions_.getByteString(index);
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    for (int i = 0; i < ins_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 104430, ins_.getRaw(i));
    }
    for (int i = 0; i < permissions_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 59962500, permissions_.getRaw(i));
    }
    for (int i = 0; i < conditions_.size(); i++) {
      output.writeMessage(142882488, conditions_.get(i));
    }
    for (int i = 0; i < logConfigs_.size(); i++) {
      output.writeMessage(152873846, logConfigs_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 187661878, action_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_);
    }
    for (int i = 0; i < notIns_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 518443138, notIns_.getRaw(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    {
      int dataSize = 0;
      for (int i = 0; i < ins_.size(); i++) {
        dataSize += computeStringSizeNoTag(ins_.getRaw(i));
      }
      size += dataSize;
      size += 3 * getInsList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < permissions_.size(); i++) {
        dataSize += computeStringSizeNoTag(permissions_.getRaw(i));
      }
      size += dataSize;
      size += 5 * getPermissionsList().size();
    }
    for (int i = 0; i < conditions_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(142882488, conditions_.get(i));
    }
    for (int i = 0; i < logConfigs_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(152873846, logConfigs_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(187661878, action_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < notIns_.size(); i++) {
        dataSize += computeStringSizeNoTag(notIns_.getRaw(i));
      }
      size += dataSize;
      size += 5 * getNotInsList().size();
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    if (hasAction() != other.hasAction()) return false;
    if (hasAction()) {
      if (!getAction().equals(other.getAction())) return false;
    }
    if (!getConditionsList().equals(other.getConditionsList())) return false;
    if (hasDescription() != other.hasDescription()) return false;
    if (hasDescription()) {
      if (!getDescription().equals(other.getDescription())) return false;
    }
    if (!getInsList().equals(other.getInsList())) return false;
    if (!getLogConfigsList().equals(other.getLogConfigsList())) return false;
    if (!getNotInsList().equals(other.getNotInsList())) return false;
    if (!getPermissionsList().equals(other.getPermissionsList())) 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 (hasAction()) {
      hash = (37 * hash) + ACTION_FIELD_NUMBER;
      hash = (53 * hash) + getAction().hashCode();
    }
    if (getConditionsCount() > 0) {
      hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
      hash = (53 * hash) + getConditionsList().hashCode();
    }
    if (hasDescription()) {
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
    }
    if (getInsCount() > 0) {
      hash = (37 * hash) + INS_FIELD_NUMBER;
      hash = (53 * hash) + getInsList().hashCode();
    }
    if (getLogConfigsCount() > 0) {
      hash = (37 * hash) + LOG_CONFIGS_FIELD_NUMBER;
      hash = (53 * hash) + getLogConfigsList().hashCode();
    }
    if (getNotInsCount() > 0) {
      hash = (37 * hash) + NOT_INS_FIELD_NUMBER;
      hash = (53 * hash) + getNotInsList().hashCode();
    }
    if (getPermissionsCount() > 0) {
      hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER;
      hash = (53 * hash) + getPermissionsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.compute.v1.Rule parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.compute.v1.Rule parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.compute.v1.Rule parseFrom(com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.compute.v1.Rule parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.compute.v1.Rule parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

  public static com.google.cloud.compute.v1.Rule parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.compute.v1.Rule parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.compute.v1.Rule parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.compute.v1.Rule parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.compute.v1.Rule parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.compute.v1.Rule prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new 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 is deprecated and has no effect. Do not use.
   * </pre>
   *
   * Protobuf type {@code google.cloud.compute.v1.Rule}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.Rule)
      com.google.cloud.compute.v1.RuleOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.compute.v1.Compute
          .internal_static_google_cloud_compute_v1_Rule_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.compute.v1.Compute
          .internal_static_google_cloud_compute_v1_Rule_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.compute.v1.Rule.class,
              com.google.cloud.compute.v1.Rule.Builder.class);
    }

    // Construct using com.google.cloud.compute.v1.Rule.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      action_ = "";
      if (conditionsBuilder_ == null) {
        conditions_ = java.util.Collections.emptyList();
      } else {
        conditions_ = null;
        conditionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      description_ = "";
      ins_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      if (logConfigsBuilder_ == null) {
        logConfigs_ = java.util.Collections.emptyList();
      } else {
        logConfigs_ = null;
        logConfigsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      notIns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000020);
      permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000040);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.compute.v1.Compute
          .internal_static_google_cloud_compute_v1_Rule_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.compute.v1.Rule getDefaultInstanceForType() {
      return com.google.cloud.compute.v1.Rule.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.google.cloud.compute.v1.Rule buildPartial() {
      com.google.cloud.compute.v1.Rule result = new com.google.cloud.compute.v1.Rule(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Rule result) {
      if (conditionsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          conditions_ = java.util.Collections.unmodifiableList(conditions_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.conditions_ = conditions_;
      } else {
        result.conditions_ = conditionsBuilder_.build();
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        ins_ = ins_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.ins_ = ins_;
      if (logConfigsBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)) {
          logConfigs_ = java.util.Collections.unmodifiableList(logConfigs_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.logConfigs_ = logConfigs_;
      } else {
        result.logConfigs_ = logConfigsBuilder_.build();
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        notIns_ = notIns_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000020);
      }
      result.notIns_ = notIns_;
      if (((bitField0_ & 0x00000040) != 0)) {
        permissions_ = permissions_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000040);
      }
      result.permissions_ = permissions_;
    }

    private void buildPartial0(com.google.cloud.compute.v1.Rule result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.action_ = action_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.description_ = description_;
        to_bitField0_ |= 0x00000002;
      }
      result.bitField0_ |= to_bitField0_;
    }

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

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

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

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

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

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

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

    public Builder mergeFrom(com.google.cloud.compute.v1.Rule other) {
      if (other == com.google.cloud.compute.v1.Rule.getDefaultInstance()) return this;
      if (other.hasAction()) {
        action_ = other.action_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (conditionsBuilder_ == null) {
        if (!other.conditions_.isEmpty()) {
          if (conditions_.isEmpty()) {
            conditions_ = other.conditions_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureConditionsIsMutable();
            conditions_.addAll(other.conditions_);
          }
          onChanged();
        }
      } else {
        if (!other.conditions_.isEmpty()) {
          if (conditionsBuilder_.isEmpty()) {
            conditionsBuilder_.dispose();
            conditionsBuilder_ = null;
            conditions_ = other.conditions_;
            bitField0_ = (bitField0_ & ~0x00000002);
            conditionsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getConditionsFieldBuilder()
                    : null;
          } else {
            conditionsBuilder_.addAllMessages(other.conditions_);
          }
        }
      }
      if (other.hasDescription()) {
        description_ = other.description_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.ins_.isEmpty()) {
        if (ins_.isEmpty()) {
          ins_ = other.ins_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureInsIsMutable();
          ins_.addAll(other.ins_);
        }
        onChanged();
      }
      if (logConfigsBuilder_ == null) {
        if (!other.logConfigs_.isEmpty()) {
          if (logConfigs_.isEmpty()) {
            logConfigs_ = other.logConfigs_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureLogConfigsIsMutable();
            logConfigs_.addAll(other.logConfigs_);
          }
          onChanged();
        }
      } else {
        if (!other.logConfigs_.isEmpty()) {
          if (logConfigsBuilder_.isEmpty()) {
            logConfigsBuilder_.dispose();
            logConfigsBuilder_ = null;
            logConfigs_ = other.logConfigs_;
            bitField0_ = (bitField0_ & ~0x00000010);
            logConfigsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getLogConfigsFieldBuilder()
                    : null;
          } else {
            logConfigsBuilder_.addAllMessages(other.logConfigs_);
          }
        }
      }
      if (!other.notIns_.isEmpty()) {
        if (notIns_.isEmpty()) {
          notIns_ = other.notIns_;
          bitField0_ = (bitField0_ & ~0x00000020);
        } else {
          ensureNotInsIsMutable();
          notIns_.addAll(other.notIns_);
        }
        onChanged();
      }
      if (!other.permissions_.isEmpty()) {
        if (permissions_.isEmpty()) {
          permissions_ = other.permissions_;
          bitField0_ = (bitField0_ & ~0x00000040);
        } else {
          ensurePermissionsIsMutable();
          permissions_.addAll(other.permissions_);
        }
        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 835442:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureInsIsMutable();
                ins_.add(s);
                break;
              } // case 835442
            case 479700002:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensurePermissionsIsMutable();
                permissions_.add(s);
                break;
              } // case 479700002
            case 1143059906:
              {
                com.google.cloud.compute.v1.Condition m =
                    input.readMessage(
                        com.google.cloud.compute.v1.Condition.parser(), extensionRegistry);
                if (conditionsBuilder_ == null) {
                  ensureConditionsIsMutable();
                  conditions_.add(m);
                } else {
                  conditionsBuilder_.addMessage(m);
                }
                break;
              } // case 1143059906
            case 1222990770:
              {
                com.google.cloud.compute.v1.LogConfig m =
                    input.readMessage(
                        com.google.cloud.compute.v1.LogConfig.parser(), extensionRegistry);
                if (logConfigsBuilder_ == null) {
                  ensureLogConfigsIsMutable();
                  logConfigs_.add(m);
                } else {
                  logConfigsBuilder_.addMessage(m);
                }
                break;
              } // case 1222990770
            case 1501295026:
              {
                action_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 1501295026
            case -911466526:
              {
                description_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case -911466526
            case -147422190:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureNotInsIsMutable();
                notIns_.add(s);
                break;
              } // case -147422190
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object action_ = "";
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * Check the Action enum for the list of possible values.
     * </pre>
     *
     * <code>optional string action = 187661878;</code>
     *
     * @return Whether the action field is set.
     */
    public boolean hasAction() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * Check the Action enum for the list of possible values.
     * </pre>
     *
     * <code>optional string action = 187661878;</code>
     *
     * @return The action.
     */
    public java.lang.String getAction() {
      java.lang.Object ref = action_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        action_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * Check the Action enum for the list of possible values.
     * </pre>
     *
     * <code>optional string action = 187661878;</code>
     *
     * @return The bytes for action.
     */
    public com.google.protobuf.ByteString getActionBytes() {
      java.lang.Object ref = action_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        action_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * Check the Action enum for the list of possible values.
     * </pre>
     *
     * <code>optional string action = 187661878;</code>
     *
     * @param value The action to set.
     * @return This builder for chaining.
     */
    public Builder setAction(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      action_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * Check the Action enum for the list of possible values.
     * </pre>
     *
     * <code>optional string action = 187661878;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAction() {
      action_ = getDefaultInstance().getAction();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * Check the Action enum for the list of possible values.
     * </pre>
     *
     * <code>optional string action = 187661878;</code>
     *
     * @param value The bytes for action to set.
     * @return This builder for chaining.
     */
    public Builder setActionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      action_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.compute.v1.Condition> conditions_ =
        java.util.Collections.emptyList();

    private void ensureConditionsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        conditions_ = new java.util.ArrayList<com.google.cloud.compute.v1.Condition>(conditions_);
        bitField0_ |= 0x00000002;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.compute.v1.Condition,
            com.google.cloud.compute.v1.Condition.Builder,
            com.google.cloud.compute.v1.ConditionOrBuilder>
        conditionsBuilder_;

    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public java.util.List<com.google.cloud.compute.v1.Condition> getConditionsList() {
      if (conditionsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(conditions_);
      } else {
        return conditionsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public int getConditionsCount() {
      if (conditionsBuilder_ == null) {
        return conditions_.size();
      } else {
        return conditionsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public com.google.cloud.compute.v1.Condition getConditions(int index) {
      if (conditionsBuilder_ == null) {
        return conditions_.get(index);
      } else {
        return conditionsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder setConditions(int index, com.google.cloud.compute.v1.Condition value) {
      if (conditionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConditionsIsMutable();
        conditions_.set(index, value);
        onChanged();
      } else {
        conditionsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder setConditions(
        int index, com.google.cloud.compute.v1.Condition.Builder builderForValue) {
      if (conditionsBuilder_ == null) {
        ensureConditionsIsMutable();
        conditions_.set(index, builderForValue.build());
        onChanged();
      } else {
        conditionsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder addConditions(com.google.cloud.compute.v1.Condition value) {
      if (conditionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConditionsIsMutable();
        conditions_.add(value);
        onChanged();
      } else {
        conditionsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder addConditions(int index, com.google.cloud.compute.v1.Condition value) {
      if (conditionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConditionsIsMutable();
        conditions_.add(index, value);
        onChanged();
      } else {
        conditionsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder addConditions(com.google.cloud.compute.v1.Condition.Builder builderForValue) {
      if (conditionsBuilder_ == null) {
        ensureConditionsIsMutable();
        conditions_.add(builderForValue.build());
        onChanged();
      } else {
        conditionsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder addConditions(
        int index, com.google.cloud.compute.v1.Condition.Builder builderForValue) {
      if (conditionsBuilder_ == null) {
        ensureConditionsIsMutable();
        conditions_.add(index, builderForValue.build());
        onChanged();
      } else {
        conditionsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder addAllConditions(
        java.lang.Iterable<? extends com.google.cloud.compute.v1.Condition> values) {
      if (conditionsBuilder_ == null) {
        ensureConditionsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_);
        onChanged();
      } else {
        conditionsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder clearConditions() {
      if (conditionsBuilder_ == null) {
        conditions_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        conditionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public Builder removeConditions(int index) {
      if (conditionsBuilder_ == null) {
        ensureConditionsIsMutable();
        conditions_.remove(index);
        onChanged();
      } else {
        conditionsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public com.google.cloud.compute.v1.Condition.Builder getConditionsBuilder(int index) {
      return getConditionsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public com.google.cloud.compute.v1.ConditionOrBuilder getConditionsOrBuilder(int index) {
      if (conditionsBuilder_ == null) {
        return conditions_.get(index);
      } else {
        return conditionsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public java.util.List<? extends com.google.cloud.compute.v1.ConditionOrBuilder>
        getConditionsOrBuilderList() {
      if (conditionsBuilder_ != null) {
        return conditionsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(conditions_);
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public com.google.cloud.compute.v1.Condition.Builder addConditionsBuilder() {
      return getConditionsFieldBuilder()
          .addBuilder(com.google.cloud.compute.v1.Condition.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public com.google.cloud.compute.v1.Condition.Builder addConditionsBuilder(int index) {
      return getConditionsFieldBuilder()
          .addBuilder(index, com.google.cloud.compute.v1.Condition.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.Condition conditions = 142882488;</code>
     */
    public java.util.List<com.google.cloud.compute.v1.Condition.Builder>
        getConditionsBuilderList() {
      return getConditionsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.compute.v1.Condition,
            com.google.cloud.compute.v1.Condition.Builder,
            com.google.cloud.compute.v1.ConditionOrBuilder>
        getConditionsFieldBuilder() {
      if (conditionsBuilder_ == null) {
        conditionsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.compute.v1.Condition,
                com.google.cloud.compute.v1.Condition.Builder,
                com.google.cloud.compute.v1.ConditionOrBuilder>(
                conditions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
        conditions_ = null;
      }
      return conditionsBuilder_;
    }

    private java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>optional string description = 422937596;</code>
     *
     * @return Whether the description field is set.
     */
    public boolean hasDescription() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>optional string description = 422937596;</code>
     *
     * @return The description.
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>optional string description = 422937596;</code>
     *
     * @return The bytes for description.
     */
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>optional string description = 422937596;</code>
     *
     * @param value The description to set.
     * @return This builder for chaining.
     */
    public Builder setDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      description_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>optional string description = 422937596;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDescription() {
      description_ = getDefaultInstance().getDescription();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>optional string description = 422937596;</code>
     *
     * @param value The bytes for description to set.
     * @return This builder for chaining.
     */
    public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      description_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList ins_ = com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureInsIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        ins_ = new com.google.protobuf.LazyStringArrayList(ins_);
        bitField0_ |= 0x00000008;
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @return A list containing the ins.
     */
    public com.google.protobuf.ProtocolStringList getInsList() {
      return ins_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @return The count of ins.
     */
    public int getInsCount() {
      return ins_.size();
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @param index The index of the element to return.
     * @return The ins at the given index.
     */
    public java.lang.String getIns(int index) {
      return ins_.get(index);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the ins at the given index.
     */
    public com.google.protobuf.ByteString getInsBytes(int index) {
      return ins_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @param index The index to set the value at.
     * @param value The ins to set.
     * @return This builder for chaining.
     */
    public Builder setIns(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureInsIsMutable();
      ins_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @param value The ins to add.
     * @return This builder for chaining.
     */
    public Builder addIns(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureInsIsMutable();
      ins_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @param values The ins to add.
     * @return This builder for chaining.
     */
    public Builder addAllIns(java.lang.Iterable<java.lang.String> values) {
      ensureInsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ins_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIns() {
      ins_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string ins = 104430;</code>
     *
     * @param value The bytes of the ins to add.
     * @return This builder for chaining.
     */
    public Builder addInsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureInsIsMutable();
      ins_.add(value);
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.compute.v1.LogConfig> logConfigs_ =
        java.util.Collections.emptyList();

    private void ensureLogConfigsIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        logConfigs_ = new java.util.ArrayList<com.google.cloud.compute.v1.LogConfig>(logConfigs_);
        bitField0_ |= 0x00000010;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.compute.v1.LogConfig,
            com.google.cloud.compute.v1.LogConfig.Builder,
            com.google.cloud.compute.v1.LogConfigOrBuilder>
        logConfigsBuilder_;

    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public java.util.List<com.google.cloud.compute.v1.LogConfig> getLogConfigsList() {
      if (logConfigsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(logConfigs_);
      } else {
        return logConfigsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public int getLogConfigsCount() {
      if (logConfigsBuilder_ == null) {
        return logConfigs_.size();
      } else {
        return logConfigsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public com.google.cloud.compute.v1.LogConfig getLogConfigs(int index) {
      if (logConfigsBuilder_ == null) {
        return logConfigs_.get(index);
      } else {
        return logConfigsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder setLogConfigs(int index, com.google.cloud.compute.v1.LogConfig value) {
      if (logConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLogConfigsIsMutable();
        logConfigs_.set(index, value);
        onChanged();
      } else {
        logConfigsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder setLogConfigs(
        int index, com.google.cloud.compute.v1.LogConfig.Builder builderForValue) {
      if (logConfigsBuilder_ == null) {
        ensureLogConfigsIsMutable();
        logConfigs_.set(index, builderForValue.build());
        onChanged();
      } else {
        logConfigsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder addLogConfigs(com.google.cloud.compute.v1.LogConfig value) {
      if (logConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLogConfigsIsMutable();
        logConfigs_.add(value);
        onChanged();
      } else {
        logConfigsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder addLogConfigs(int index, com.google.cloud.compute.v1.LogConfig value) {
      if (logConfigsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLogConfigsIsMutable();
        logConfigs_.add(index, value);
        onChanged();
      } else {
        logConfigsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder addLogConfigs(com.google.cloud.compute.v1.LogConfig.Builder builderForValue) {
      if (logConfigsBuilder_ == null) {
        ensureLogConfigsIsMutable();
        logConfigs_.add(builderForValue.build());
        onChanged();
      } else {
        logConfigsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder addLogConfigs(
        int index, com.google.cloud.compute.v1.LogConfig.Builder builderForValue) {
      if (logConfigsBuilder_ == null) {
        ensureLogConfigsIsMutable();
        logConfigs_.add(index, builderForValue.build());
        onChanged();
      } else {
        logConfigsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder addAllLogConfigs(
        java.lang.Iterable<? extends com.google.cloud.compute.v1.LogConfig> values) {
      if (logConfigsBuilder_ == null) {
        ensureLogConfigsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logConfigs_);
        onChanged();
      } else {
        logConfigsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder clearLogConfigs() {
      if (logConfigsBuilder_ == null) {
        logConfigs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        logConfigsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public Builder removeLogConfigs(int index) {
      if (logConfigsBuilder_ == null) {
        ensureLogConfigsIsMutable();
        logConfigs_.remove(index);
        onChanged();
      } else {
        logConfigsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public com.google.cloud.compute.v1.LogConfig.Builder getLogConfigsBuilder(int index) {
      return getLogConfigsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public com.google.cloud.compute.v1.LogConfigOrBuilder getLogConfigsOrBuilder(int index) {
      if (logConfigsBuilder_ == null) {
        return logConfigs_.get(index);
      } else {
        return logConfigsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public java.util.List<? extends com.google.cloud.compute.v1.LogConfigOrBuilder>
        getLogConfigsOrBuilderList() {
      if (logConfigsBuilder_ != null) {
        return logConfigsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(logConfigs_);
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public com.google.cloud.compute.v1.LogConfig.Builder addLogConfigsBuilder() {
      return getLogConfigsFieldBuilder()
          .addBuilder(com.google.cloud.compute.v1.LogConfig.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public com.google.cloud.compute.v1.LogConfig.Builder addLogConfigsBuilder(int index) {
      return getLogConfigsFieldBuilder()
          .addBuilder(index, com.google.cloud.compute.v1.LogConfig.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846;</code>
     */
    public java.util.List<com.google.cloud.compute.v1.LogConfig.Builder>
        getLogConfigsBuilderList() {
      return getLogConfigsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.compute.v1.LogConfig,
            com.google.cloud.compute.v1.LogConfig.Builder,
            com.google.cloud.compute.v1.LogConfigOrBuilder>
        getLogConfigsFieldBuilder() {
      if (logConfigsBuilder_ == null) {
        logConfigsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.compute.v1.LogConfig,
                com.google.cloud.compute.v1.LogConfig.Builder,
                com.google.cloud.compute.v1.LogConfigOrBuilder>(
                logConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
        logConfigs_ = null;
      }
      return logConfigsBuilder_;
    }

    private com.google.protobuf.LazyStringList notIns_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureNotInsIsMutable() {
      if (!((bitField0_ & 0x00000020) != 0)) {
        notIns_ = new com.google.protobuf.LazyStringArrayList(notIns_);
        bitField0_ |= 0x00000020;
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @return A list containing the notIns.
     */
    public com.google.protobuf.ProtocolStringList getNotInsList() {
      return notIns_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @return The count of notIns.
     */
    public int getNotInsCount() {
      return notIns_.size();
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @param index The index of the element to return.
     * @return The notIns at the given index.
     */
    public java.lang.String getNotIns(int index) {
      return notIns_.get(index);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the notIns at the given index.
     */
    public com.google.protobuf.ByteString getNotInsBytes(int index) {
      return notIns_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @param index The index to set the value at.
     * @param value The notIns to set.
     * @return This builder for chaining.
     */
    public Builder setNotIns(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureNotInsIsMutable();
      notIns_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @param value The notIns to add.
     * @return This builder for chaining.
     */
    public Builder addNotIns(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureNotInsIsMutable();
      notIns_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @param values The notIns to add.
     * @return This builder for chaining.
     */
    public Builder addAllNotIns(java.lang.Iterable<java.lang.String> values) {
      ensureNotInsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notIns_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearNotIns() {
      notIns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string not_ins = 518443138;</code>
     *
     * @param value The bytes of the notIns to add.
     * @return This builder for chaining.
     */
    public Builder addNotInsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureNotInsIsMutable();
      notIns_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList permissions_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensurePermissionsIsMutable() {
      if (!((bitField0_ & 0x00000040) != 0)) {
        permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_);
        bitField0_ |= 0x00000040;
      }
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @return A list containing the permissions.
     */
    public com.google.protobuf.ProtocolStringList getPermissionsList() {
      return permissions_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @return The count of permissions.
     */
    public int getPermissionsCount() {
      return permissions_.size();
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @param index The index of the element to return.
     * @return The permissions at the given index.
     */
    public java.lang.String getPermissions(int index) {
      return permissions_.get(index);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the permissions at the given index.
     */
    public com.google.protobuf.ByteString getPermissionsBytes(int index) {
      return permissions_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @param index The index to set the value at.
     * @param value The permissions to set.
     * @return This builder for chaining.
     */
    public Builder setPermissions(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensurePermissionsIsMutable();
      permissions_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @param value The permissions to add.
     * @return This builder for chaining.
     */
    public Builder addPermissions(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensurePermissionsIsMutable();
      permissions_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @param values The permissions to add.
     * @return This builder for chaining.
     */
    public Builder addAllPermissions(java.lang.Iterable<java.lang.String> values) {
      ensurePermissionsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPermissions() {
      permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * This is deprecated and has no effect. Do not use.
     * </pre>
     *
     * <code>repeated string permissions = 59962500;</code>
     *
     * @param value The bytes of the permissions to add.
     * @return This builder for chaining.
     */
    public Builder addPermissionsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensurePermissionsIsMutable();
      permissions_.add(value);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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

    // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.Rule)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.Rule)
  private static final com.google.cloud.compute.v1.Rule DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.compute.v1.Rule();
  }

  public static com.google.cloud.compute.v1.Rule getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Rule> PARSER =
      new com.google.protobuf.AbstractParser<Rule>() {
        @java.lang.Override
        public Rule 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<Rule> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.cloud.compute.v1.Rule getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
