/*
 * 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/api/servicecontrol/v1/service_controller.proto

package com.google.api.servicecontrol.v1;

/**
 *
 *
 * <pre>
 * Response message for the Check method.
 * </pre>
 *
 * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse}
 */
public final class CheckResponse extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.CheckResponse)
    CheckResponseOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use CheckResponse.newBuilder() to construct.
  private CheckResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private CheckResponse() {
    operationId_ = "";
    checkErrors_ = java.util.Collections.emptyList();
    serviceConfigId_ = "";
    serviceRolloutId_ = "";
  }

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

  @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.api.servicecontrol.v1.ServiceControllerProto
        .internal_static_google_api_servicecontrol_v1_CheckResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.api.servicecontrol.v1.ServiceControllerProto
        .internal_static_google_api_servicecontrol_v1_CheckResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.api.servicecontrol.v1.CheckResponse.class,
            com.google.api.servicecontrol.v1.CheckResponse.Builder.class);
  }

  public interface CheckInfoOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.api.servicecontrol.v1.CheckResponse.CheckInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * A list of fields and label keys that are ignored by the server.
     * The client doesn't need to send them for following requests to improve
     * performance and allow better aggregation.
     * </pre>
     *
     * <code>repeated string unused_arguments = 1;</code>
     *
     * @return A list containing the unusedArguments.
     */
    java.util.List<java.lang.String> getUnusedArgumentsList();
    /**
     *
     *
     * <pre>
     * A list of fields and label keys that are ignored by the server.
     * The client doesn't need to send them for following requests to improve
     * performance and allow better aggregation.
     * </pre>
     *
     * <code>repeated string unused_arguments = 1;</code>
     *
     * @return The count of unusedArguments.
     */
    int getUnusedArgumentsCount();
    /**
     *
     *
     * <pre>
     * A list of fields and label keys that are ignored by the server.
     * The client doesn't need to send them for following requests to improve
     * performance and allow better aggregation.
     * </pre>
     *
     * <code>repeated string unused_arguments = 1;</code>
     *
     * @param index The index of the element to return.
     * @return The unusedArguments at the given index.
     */
    java.lang.String getUnusedArguments(int index);
    /**
     *
     *
     * <pre>
     * A list of fields and label keys that are ignored by the server.
     * The client doesn't need to send them for following requests to improve
     * performance and allow better aggregation.
     * </pre>
     *
     * <code>repeated string unused_arguments = 1;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the unusedArguments at the given index.
     */
    com.google.protobuf.ByteString getUnusedArgumentsBytes(int index);

    /**
     *
     *
     * <pre>
     * Consumer info of this check.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
     *
     * @return Whether the consumerInfo field is set.
     */
    boolean hasConsumerInfo();
    /**
     *
     *
     * <pre>
     * Consumer info of this check.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
     *
     * @return The consumerInfo.
     */
    com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getConsumerInfo();
    /**
     *
     *
     * <pre>
     * Consumer info of this check.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
     */
    com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder getConsumerInfoOrBuilder();
  }
  /**
   *
   *
   * <pre>
   * Contains additional information about the check operation.
   * </pre>
   *
   * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse.CheckInfo}
   */
  public static final class CheckInfo extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.CheckResponse.CheckInfo)
      CheckInfoOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use CheckInfo.newBuilder() to construct.
    private CheckInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private CheckInfo() {
      unusedArguments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

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

    @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.api.servicecontrol.v1.ServiceControllerProto
          .internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.api.servicecontrol.v1.ServiceControllerProto
          .internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.class,
              com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder.class);
    }

    public static final int UNUSED_ARGUMENTS_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringList unusedArguments_;
    /**
     *
     *
     * <pre>
     * A list of fields and label keys that are ignored by the server.
     * The client doesn't need to send them for following requests to improve
     * performance and allow better aggregation.
     * </pre>
     *
     * <code>repeated string unused_arguments = 1;</code>
     *
     * @return A list containing the unusedArguments.
     */
    public com.google.protobuf.ProtocolStringList getUnusedArgumentsList() {
      return unusedArguments_;
    }
    /**
     *
     *
     * <pre>
     * A list of fields and label keys that are ignored by the server.
     * The client doesn't need to send them for following requests to improve
     * performance and allow better aggregation.
     * </pre>
     *
     * <code>repeated string unused_arguments = 1;</code>
     *
     * @return The count of unusedArguments.
     */
    public int getUnusedArgumentsCount() {
      return unusedArguments_.size();
    }
    /**
     *
     *
     * <pre>
     * A list of fields and label keys that are ignored by the server.
     * The client doesn't need to send them for following requests to improve
     * performance and allow better aggregation.
     * </pre>
     *
     * <code>repeated string unused_arguments = 1;</code>
     *
     * @param index The index of the element to return.
     * @return The unusedArguments at the given index.
     */
    public java.lang.String getUnusedArguments(int index) {
      return unusedArguments_.get(index);
    }
    /**
     *
     *
     * <pre>
     * A list of fields and label keys that are ignored by the server.
     * The client doesn't need to send them for following requests to improve
     * performance and allow better aggregation.
     * </pre>
     *
     * <code>repeated string unused_arguments = 1;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the unusedArguments at the given index.
     */
    public com.google.protobuf.ByteString getUnusedArgumentsBytes(int index) {
      return unusedArguments_.getByteString(index);
    }

    public static final int CONSUMER_INFO_FIELD_NUMBER = 2;
    private com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumerInfo_;
    /**
     *
     *
     * <pre>
     * Consumer info of this check.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
     *
     * @return Whether the consumerInfo field is set.
     */
    @java.lang.Override
    public boolean hasConsumerInfo() {
      return consumerInfo_ != null;
    }
    /**
     *
     *
     * <pre>
     * Consumer info of this check.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
     *
     * @return The consumerInfo.
     */
    @java.lang.Override
    public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getConsumerInfo() {
      return consumerInfo_ == null
          ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance()
          : consumerInfo_;
    }
    /**
     *
     *
     * <pre>
     * Consumer info of this check.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
     */
    @java.lang.Override
    public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder
        getConsumerInfoOrBuilder() {
      return consumerInfo_ == null
          ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance()
          : consumerInfo_;
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      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 < unusedArguments_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unusedArguments_.getRaw(i));
      }
      if (consumerInfo_ != null) {
        output.writeMessage(2, getConsumerInfo());
      }
      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 < unusedArguments_.size(); i++) {
          dataSize += computeStringSizeNoTag(unusedArguments_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getUnusedArgumentsList().size();
      }
      if (consumerInfo_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConsumerInfo());
      }
      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.api.servicecontrol.v1.CheckResponse.CheckInfo)) {
        return super.equals(obj);
      }
      com.google.api.servicecontrol.v1.CheckResponse.CheckInfo other =
          (com.google.api.servicecontrol.v1.CheckResponse.CheckInfo) obj;

      if (!getUnusedArgumentsList().equals(other.getUnusedArgumentsList())) return false;
      if (hasConsumerInfo() != other.hasConsumerInfo()) return false;
      if (hasConsumerInfo()) {
        if (!getConsumerInfo().equals(other.getConsumerInfo())) 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 (getUnusedArgumentsCount() > 0) {
        hash = (37 * hash) + UNUSED_ARGUMENTS_FIELD_NUMBER;
        hash = (53 * hash) + getUnusedArgumentsList().hashCode();
      }
      if (hasConsumerInfo()) {
        hash = (37 * hash) + CONSUMER_INFO_FIELD_NUMBER;
        hash = (53 * hash) + getConsumerInfo().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo 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.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(
        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.api.servicecontrol.v1.CheckResponse.CheckInfo parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseDelimitedFrom(
        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.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.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.api.servicecontrol.v1.CheckResponse.CheckInfo prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new 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>
     * Contains additional information about the check operation.
     * </pre>
     *
     * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse.CheckInfo}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.CheckResponse.CheckInfo)
        com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.api.servicecontrol.v1.ServiceControllerProto
            .internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.api.servicecontrol.v1.ServiceControllerProto
            .internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.class,
                com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder.class);
      }

      // Construct using com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        unusedArguments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        consumerInfo_ = null;
        if (consumerInfoBuilder_ != null) {
          consumerInfoBuilder_.dispose();
          consumerInfoBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.api.servicecontrol.v1.ServiceControllerProto
            .internal_static_google_api_servicecontrol_v1_CheckResponse_CheckInfo_descriptor;
      }

      @java.lang.Override
      public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getDefaultInstanceForType() {
        return com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo build() {
        com.google.api.servicecontrol.v1.CheckResponse.CheckInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo buildPartial() {
        com.google.api.servicecontrol.v1.CheckResponse.CheckInfo result =
            new com.google.api.servicecontrol.v1.CheckResponse.CheckInfo(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(
          com.google.api.servicecontrol.v1.CheckResponse.CheckInfo result) {
        if (((bitField0_ & 0x00000001) != 0)) {
          unusedArguments_ = unusedArguments_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.unusedArguments_ = unusedArguments_;
      }

      private void buildPartial0(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.consumerInfo_ =
              consumerInfoBuilder_ == null ? consumerInfo_ : consumerInfoBuilder_.build();
        }
      }

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

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

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

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

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

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor 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.api.servicecontrol.v1.CheckResponse.CheckInfo) {
          return mergeFrom((com.google.api.servicecontrol.v1.CheckResponse.CheckInfo) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo other) {
        if (other == com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance())
          return this;
        if (!other.unusedArguments_.isEmpty()) {
          if (unusedArguments_.isEmpty()) {
            unusedArguments_ = other.unusedArguments_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureUnusedArgumentsIsMutable();
            unusedArguments_.addAll(other.unusedArguments_);
          }
          onChanged();
        }
        if (other.hasConsumerInfo()) {
          mergeConsumerInfo(other.getConsumerInfo());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensureUnusedArgumentsIsMutable();
                  unusedArguments_.add(s);
                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(getConsumerInfoFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

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

      private void ensureUnusedArgumentsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          unusedArguments_ = new com.google.protobuf.LazyStringArrayList(unusedArguments_);
          bitField0_ |= 0x00000001;
        }
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @return A list containing the unusedArguments.
       */
      public com.google.protobuf.ProtocolStringList getUnusedArgumentsList() {
        return unusedArguments_.getUnmodifiableView();
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @return The count of unusedArguments.
       */
      public int getUnusedArgumentsCount() {
        return unusedArguments_.size();
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @param index The index of the element to return.
       * @return The unusedArguments at the given index.
       */
      public java.lang.String getUnusedArguments(int index) {
        return unusedArguments_.get(index);
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the unusedArguments at the given index.
       */
      public com.google.protobuf.ByteString getUnusedArgumentsBytes(int index) {
        return unusedArguments_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @param index The index to set the value at.
       * @param value The unusedArguments to set.
       * @return This builder for chaining.
       */
      public Builder setUnusedArguments(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureUnusedArgumentsIsMutable();
        unusedArguments_.set(index, value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @param value The unusedArguments to add.
       * @return This builder for chaining.
       */
      public Builder addUnusedArguments(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureUnusedArgumentsIsMutable();
        unusedArguments_.add(value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @param values The unusedArguments to add.
       * @return This builder for chaining.
       */
      public Builder addAllUnusedArguments(java.lang.Iterable<java.lang.String> values) {
        ensureUnusedArgumentsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unusedArguments_);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearUnusedArguments() {
        unusedArguments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of fields and label keys that are ignored by the server.
       * The client doesn't need to send them for following requests to improve
       * performance and allow better aggregation.
       * </pre>
       *
       * <code>repeated string unused_arguments = 1;</code>
       *
       * @param value The bytes of the unusedArguments to add.
       * @return This builder for chaining.
       */
      public Builder addUnusedArgumentsBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensureUnusedArgumentsIsMutable();
        unusedArguments_.add(value);
        onChanged();
        return this;
      }

      private com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumerInfo_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo,
              com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder,
              com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder>
          consumerInfoBuilder_;
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       *
       * @return Whether the consumerInfo field is set.
       */
      public boolean hasConsumerInfo() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       *
       * @return The consumerInfo.
       */
      public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getConsumerInfo() {
        if (consumerInfoBuilder_ == null) {
          return consumerInfo_ == null
              ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance()
              : consumerInfo_;
        } else {
          return consumerInfoBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       */
      public Builder setConsumerInfo(
          com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo value) {
        if (consumerInfoBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          consumerInfo_ = value;
        } else {
          consumerInfoBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       */
      public Builder setConsumerInfo(
          com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder builderForValue) {
        if (consumerInfoBuilder_ == null) {
          consumerInfo_ = builderForValue.build();
        } else {
          consumerInfoBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       */
      public Builder mergeConsumerInfo(
          com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo value) {
        if (consumerInfoBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)
              && consumerInfo_ != null
              && consumerInfo_
                  != com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo
                      .getDefaultInstance()) {
            getConsumerInfoBuilder().mergeFrom(value);
          } else {
            consumerInfo_ = value;
          }
        } else {
          consumerInfoBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       */
      public Builder clearConsumerInfo() {
        bitField0_ = (bitField0_ & ~0x00000002);
        consumerInfo_ = null;
        if (consumerInfoBuilder_ != null) {
          consumerInfoBuilder_.dispose();
          consumerInfoBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       */
      public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder
          getConsumerInfoBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getConsumerInfoFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       */
      public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder
          getConsumerInfoOrBuilder() {
        if (consumerInfoBuilder_ != null) {
          return consumerInfoBuilder_.getMessageOrBuilder();
        } else {
          return consumerInfo_ == null
              ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance()
              : consumerInfo_;
        }
      }
      /**
       *
       *
       * <pre>
       * Consumer info of this check.
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo,
              com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder,
              com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder>
          getConsumerInfoFieldBuilder() {
        if (consumerInfoBuilder_ == null) {
          consumerInfoBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo,
                  com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder,
                  com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder>(
                  getConsumerInfo(), getParentForChildren(), isClean());
          consumerInfo_ = null;
        }
        return consumerInfoBuilder_;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.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.api.servicecontrol.v1.CheckResponse.CheckInfo)
    }

    // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.CheckResponse.CheckInfo)
    private static final com.google.api.servicecontrol.v1.CheckResponse.CheckInfo DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.CheckResponse.CheckInfo();
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface ConsumerInfoOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
     * no project number is found.
     * NOTE: This field is deprecated after we support flexible consumer
     * id. New code should not depend on this field anymore.
     * </pre>
     *
     * <code>int64 project_number = 1;</code>
     *
     * @return The projectNumber.
     */
    long getProjectNumber();

    /**
     *
     *
     * <pre>
     * The type of the consumer which should have been defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;</code>
     *
     * @return The enum numeric value on the wire for type.
     */
    int getTypeValue();
    /**
     *
     *
     * <pre>
     * The type of the consumer which should have been defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;</code>
     *
     * @return The type.
     */
    com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType getType();

    /**
     *
     *
     * <pre>
     * The consumer identity number, can be Google cloud project number, folder
     * number or organization number e.g. 1234567890. A value of 0 indicates no
     * consumer number is found.
     * </pre>
     *
     * <code>int64 consumer_number = 3;</code>
     *
     * @return The consumerNumber.
     */
    long getConsumerNumber();
  }
  /**
   *
   *
   * <pre>
   * `ConsumerInfo` provides information about the consumer.
   * </pre>
   *
   * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse.ConsumerInfo}
   */
  public static final class ConsumerInfo extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo)
      ConsumerInfoOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use ConsumerInfo.newBuilder() to construct.
    private ConsumerInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private ConsumerInfo() {
      type_ = 0;
    }

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

    @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.api.servicecontrol.v1.ServiceControllerProto
          .internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.api.servicecontrol.v1.ServiceControllerProto
          .internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.class,
              com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * The type of the consumer as defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * </pre>
     *
     * Protobuf enum {@code google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType}
     */
    public enum ConsumerType implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * This is never used.
       * </pre>
       *
       * <code>CONSUMER_TYPE_UNSPECIFIED = 0;</code>
       */
      CONSUMER_TYPE_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * The consumer is a Google Cloud Project.
       * </pre>
       *
       * <code>PROJECT = 1;</code>
       */
      PROJECT(1),
      /**
       *
       *
       * <pre>
       * The consumer is a Google Cloud Folder.
       * </pre>
       *
       * <code>FOLDER = 2;</code>
       */
      FOLDER(2),
      /**
       *
       *
       * <pre>
       * The consumer is a Google Cloud Organization.
       * </pre>
       *
       * <code>ORGANIZATION = 3;</code>
       */
      ORGANIZATION(3),
      /**
       *
       *
       * <pre>
       * Service-specific resource container which is defined by the service
       * producer to offer their users the ability to manage service control
       * functionalities at a finer level of granularity than the PROJECT.
       * </pre>
       *
       * <code>SERVICE_SPECIFIC = 4;</code>
       */
      SERVICE_SPECIFIC(4),
      UNRECOGNIZED(-1),
      ;

      /**
       *
       *
       * <pre>
       * This is never used.
       * </pre>
       *
       * <code>CONSUMER_TYPE_UNSPECIFIED = 0;</code>
       */
      public static final int CONSUMER_TYPE_UNSPECIFIED_VALUE = 0;
      /**
       *
       *
       * <pre>
       * The consumer is a Google Cloud Project.
       * </pre>
       *
       * <code>PROJECT = 1;</code>
       */
      public static final int PROJECT_VALUE = 1;
      /**
       *
       *
       * <pre>
       * The consumer is a Google Cloud Folder.
       * </pre>
       *
       * <code>FOLDER = 2;</code>
       */
      public static final int FOLDER_VALUE = 2;
      /**
       *
       *
       * <pre>
       * The consumer is a Google Cloud Organization.
       * </pre>
       *
       * <code>ORGANIZATION = 3;</code>
       */
      public static final int ORGANIZATION_VALUE = 3;
      /**
       *
       *
       * <pre>
       * Service-specific resource container which is defined by the service
       * producer to offer their users the ability to manage service control
       * functionalities at a finer level of granularity than the PROJECT.
       * </pre>
       *
       * <code>SERVICE_SPECIFIC = 4;</code>
       */
      public static final int SERVICE_SPECIFIC_VALUE = 4;

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

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static ConsumerType 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 ConsumerType forNumber(int value) {
        switch (value) {
          case 0:
            return CONSUMER_TYPE_UNSPECIFIED;
          case 1:
            return PROJECT;
          case 2:
            return FOLDER;
          case 3:
            return ORGANIZATION;
          case 4:
            return SERVICE_SPECIFIC;
          default:
            return null;
        }
      }

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

      private static final com.google.protobuf.Internal.EnumLiteMap<ConsumerType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ConsumerType>() {
            public ConsumerType findValueByNumber(int number) {
              return ConsumerType.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.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

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

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

      // @@protoc_insertion_point(enum_scope:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType)
    }

    public static final int PROJECT_NUMBER_FIELD_NUMBER = 1;
    private long projectNumber_ = 0L;
    /**
     *
     *
     * <pre>
     * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
     * no project number is found.
     * NOTE: This field is deprecated after we support flexible consumer
     * id. New code should not depend on this field anymore.
     * </pre>
     *
     * <code>int64 project_number = 1;</code>
     *
     * @return The projectNumber.
     */
    @java.lang.Override
    public long getProjectNumber() {
      return projectNumber_;
    }

    public static final int TYPE_FIELD_NUMBER = 2;
    private int type_ = 0;
    /**
     *
     *
     * <pre>
     * The type of the consumer which should have been defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;</code>
     *
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override
    public int getTypeValue() {
      return type_;
    }
    /**
     *
     *
     * <pre>
     * The type of the consumer which should have been defined in
     * [Google Resource Manager](https://cloud.google.com/resource-manager/).
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;</code>
     *
     * @return The type.
     */
    @java.lang.Override
    public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType getType() {
      com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType result =
          com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType.forNumber(type_);
      return result == null
          ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType.UNRECOGNIZED
          : result;
    }

    public static final int CONSUMER_NUMBER_FIELD_NUMBER = 3;
    private long consumerNumber_ = 0L;
    /**
     *
     *
     * <pre>
     * The consumer identity number, can be Google cloud project number, folder
     * number or organization number e.g. 1234567890. A value of 0 indicates no
     * consumer number is found.
     * </pre>
     *
     * <code>int64 consumer_number = 3;</code>
     *
     * @return The consumerNumber.
     */
    @java.lang.Override
    public long getConsumerNumber() {
      return consumerNumber_;
    }

    private byte memoizedIsInitialized = -1;

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (projectNumber_ != 0L) {
        output.writeInt64(1, projectNumber_);
      }
      if (type_
          != com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType
              .CONSUMER_TYPE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(2, type_);
      }
      if (consumerNumber_ != 0L) {
        output.writeInt64(3, consumerNumber_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (projectNumber_ != 0L) {
        size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, projectNumber_);
      }
      if (type_
          != com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType
              .CONSUMER_TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
      }
      if (consumerNumber_ != 0L) {
        size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, consumerNumber_);
      }
      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.api.servicecontrol.v1.CheckResponse.ConsumerInfo)) {
        return super.equals(obj);
      }
      com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo other =
          (com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) obj;

      if (getProjectNumber() != other.getProjectNumber()) return false;
      if (type_ != other.type_) return false;
      if (getConsumerNumber() != other.getConsumerNumber()) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + PROJECT_NUMBER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProjectNumber());
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + type_;
      hash = (37 * hash) + CONSUMER_NUMBER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getConsumerNumber());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo 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.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(
        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.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseDelimitedFrom(
        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.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.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.api.servicecontrol.v1.CheckResponse.ConsumerInfo prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new 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>
     * `ConsumerInfo` provides information about the consumer.
     * </pre>
     *
     * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse.ConsumerInfo}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo)
        com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.api.servicecontrol.v1.ServiceControllerProto
            .internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.api.servicecontrol.v1.ServiceControllerProto
            .internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.class,
                com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.Builder.class);
      }

      // Construct using com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.newBuilder()
      private Builder() {}

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

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.api.servicecontrol.v1.ServiceControllerProto
            .internal_static_google_api_servicecontrol_v1_CheckResponse_ConsumerInfo_descriptor;
      }

      @java.lang.Override
      public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo
          getDefaultInstanceForType() {
        return com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo build() {
        com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo buildPartial() {
        com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo result =
            new com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.projectNumber_ = projectNumber_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.type_ = type_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.consumerNumber_ = consumerNumber_;
        }
      }

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

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

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

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

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

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor 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.api.servicecontrol.v1.CheckResponse.ConsumerInfo) {
          return mergeFrom((com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo other) {
        if (other
            == com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.getDefaultInstance())
          return this;
        if (other.getProjectNumber() != 0L) {
          setProjectNumber(other.getProjectNumber());
        }
        if (other.type_ != 0) {
          setTypeValue(other.getTypeValue());
        }
        if (other.getConsumerNumber() != 0L) {
          setConsumerNumber(other.getConsumerNumber());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

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

      private int bitField0_;

      private long projectNumber_;
      /**
       *
       *
       * <pre>
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       * NOTE: This field is deprecated after we support flexible consumer
       * id. New code should not depend on this field anymore.
       * </pre>
       *
       * <code>int64 project_number = 1;</code>
       *
       * @return The projectNumber.
       */
      @java.lang.Override
      public long getProjectNumber() {
        return projectNumber_;
      }
      /**
       *
       *
       * <pre>
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       * NOTE: This field is deprecated after we support flexible consumer
       * id. New code should not depend on this field anymore.
       * </pre>
       *
       * <code>int64 project_number = 1;</code>
       *
       * @param value The projectNumber to set.
       * @return This builder for chaining.
       */
      public Builder setProjectNumber(long value) {

        projectNumber_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The Google cloud project number, e.g. 1234567890. A value of 0 indicates
       * no project number is found.
       * NOTE: This field is deprecated after we support flexible consumer
       * id. New code should not depend on this field anymore.
       * </pre>
       *
       * <code>int64 project_number = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearProjectNumber() {
        bitField0_ = (bitField0_ & ~0x00000001);
        projectNumber_ = 0L;
        onChanged();
        return this;
      }

      private int type_ = 0;
      /**
       *
       *
       * <pre>
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;
       * </code>
       *
       * @return The enum numeric value on the wire for type.
       */
      @java.lang.Override
      public int getTypeValue() {
        return type_;
      }
      /**
       *
       *
       * <pre>
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;
       * </code>
       *
       * @param value The enum numeric value on the wire for type to set.
       * @return This builder for chaining.
       */
      public Builder setTypeValue(int value) {
        type_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;
       * </code>
       *
       * @return The type.
       */
      @java.lang.Override
      public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType getType() {
        com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType result =
            com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType.forNumber(
                type_);
        return result == null
            ? com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;
       * </code>
       *
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(
          com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        type_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The type of the consumer which should have been defined in
       * [Google Resource Manager](https://cloud.google.com/resource-manager/).
       * </pre>
       *
       * <code>.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000002);
        type_ = 0;
        onChanged();
        return this;
      }

      private long consumerNumber_;
      /**
       *
       *
       * <pre>
       * The consumer identity number, can be Google cloud project number, folder
       * number or organization number e.g. 1234567890. A value of 0 indicates no
       * consumer number is found.
       * </pre>
       *
       * <code>int64 consumer_number = 3;</code>
       *
       * @return The consumerNumber.
       */
      @java.lang.Override
      public long getConsumerNumber() {
        return consumerNumber_;
      }
      /**
       *
       *
       * <pre>
       * The consumer identity number, can be Google cloud project number, folder
       * number or organization number e.g. 1234567890. A value of 0 indicates no
       * consumer number is found.
       * </pre>
       *
       * <code>int64 consumer_number = 3;</code>
       *
       * @param value The consumerNumber to set.
       * @return This builder for chaining.
       */
      public Builder setConsumerNumber(long value) {

        consumerNumber_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The consumer identity number, can be Google cloud project number, folder
       * number or organization number e.g. 1234567890. A value of 0 indicates no
       * consumer number is found.
       * </pre>
       *
       * <code>int64 consumer_number = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearConsumerNumber() {
        bitField0_ = (bitField0_ & ~0x00000004);
        consumerNumber_ = 0L;
        onChanged();
        return this;
      }

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

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

      // @@protoc_insertion_point(builder_scope:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo)
    }

    // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo)
    private static final com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo();
    }

    public static com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

    @java.lang.Override
    public com.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int OPERATION_ID_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object operationId_ = "";
  /**
   *
   *
   * <pre>
   * The same operation_id value used in the
   * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
   * and diagnostics purposes.
   * </pre>
   *
   * <code>string operation_id = 1;</code>
   *
   * @return The operationId.
   */
  @java.lang.Override
  public java.lang.String getOperationId() {
    java.lang.Object ref = operationId_;
    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();
      operationId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The same operation_id value used in the
   * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
   * and diagnostics purposes.
   * </pre>
   *
   * <code>string operation_id = 1;</code>
   *
   * @return The bytes for operationId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getOperationIdBytes() {
    java.lang.Object ref = operationId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      operationId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CHECK_ERRORS_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private java.util.List<com.google.api.servicecontrol.v1.CheckError> checkErrors_;
  /**
   *
   *
   * <pre>
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * </pre>
   *
   * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.api.servicecontrol.v1.CheckError> getCheckErrorsList() {
    return checkErrors_;
  }
  /**
   *
   *
   * <pre>
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * </pre>
   *
   * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.api.servicecontrol.v1.CheckErrorOrBuilder>
      getCheckErrorsOrBuilderList() {
    return checkErrors_;
  }
  /**
   *
   *
   * <pre>
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * </pre>
   *
   * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
   */
  @java.lang.Override
  public int getCheckErrorsCount() {
    return checkErrors_.size();
  }
  /**
   *
   *
   * <pre>
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * </pre>
   *
   * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
   */
  @java.lang.Override
  public com.google.api.servicecontrol.v1.CheckError getCheckErrors(int index) {
    return checkErrors_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Indicate the decision of the check.
   * If no check errors are present, the service should process the operation.
   * Otherwise the service should use the list of errors to determine the
   * appropriate action.
   * </pre>
   *
   * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
   */
  @java.lang.Override
  public com.google.api.servicecontrol.v1.CheckErrorOrBuilder getCheckErrorsOrBuilder(int index) {
    return checkErrors_.get(index);
  }

  public static final int SERVICE_CONFIG_ID_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object serviceConfigId_ = "";
  /**
   *
   *
   * <pre>
   * The actual config id used to process the request.
   * </pre>
   *
   * <code>string service_config_id = 5;</code>
   *
   * @return The serviceConfigId.
   */
  @java.lang.Override
  public java.lang.String getServiceConfigId() {
    java.lang.Object ref = serviceConfigId_;
    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();
      serviceConfigId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The actual config id used to process the request.
   * </pre>
   *
   * <code>string service_config_id = 5;</code>
   *
   * @return The bytes for serviceConfigId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getServiceConfigIdBytes() {
    java.lang.Object ref = serviceConfigId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      serviceConfigId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SERVICE_ROLLOUT_ID_FIELD_NUMBER = 11;

  @SuppressWarnings("serial")
  private volatile java.lang.Object serviceRolloutId_ = "";
  /**
   *
   *
   * <pre>
   * The current service rollout id used to process the request.
   * </pre>
   *
   * <code>string service_rollout_id = 11;</code>
   *
   * @return The serviceRolloutId.
   */
  @java.lang.Override
  public java.lang.String getServiceRolloutId() {
    java.lang.Object ref = serviceRolloutId_;
    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();
      serviceRolloutId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The current service rollout id used to process the request.
   * </pre>
   *
   * <code>string service_rollout_id = 11;</code>
   *
   * @return The bytes for serviceRolloutId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getServiceRolloutIdBytes() {
    java.lang.Object ref = serviceRolloutId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      serviceRolloutId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CHECK_INFO_FIELD_NUMBER = 6;
  private com.google.api.servicecontrol.v1.CheckResponse.CheckInfo checkInfo_;
  /**
   *
   *
   * <pre>
   * Feedback data returned from the server during processing a Check request.
   * </pre>
   *
   * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
   *
   * @return Whether the checkInfo field is set.
   */
  @java.lang.Override
  public boolean hasCheckInfo() {
    return checkInfo_ != null;
  }
  /**
   *
   *
   * <pre>
   * Feedback data returned from the server during processing a Check request.
   * </pre>
   *
   * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
   *
   * @return The checkInfo.
   */
  @java.lang.Override
  public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getCheckInfo() {
    return checkInfo_ == null
        ? com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance()
        : checkInfo_;
  }
  /**
   *
   *
   * <pre>
   * Feedback data returned from the server during processing a Check request.
   * </pre>
   *
   * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
   */
  @java.lang.Override
  public com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder getCheckInfoOrBuilder() {
    return checkInfo_ == null
        ? com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance()
        : checkInfo_;
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_);
    }
    for (int i = 0; i < checkErrors_.size(); i++) {
      output.writeMessage(2, checkErrors_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceConfigId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceConfigId_);
    }
    if (checkInfo_ != null) {
      output.writeMessage(6, getCheckInfo());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceRolloutId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceRolloutId_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_);
    }
    for (int i = 0; i < checkErrors_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, checkErrors_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceConfigId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceConfigId_);
    }
    if (checkInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCheckInfo());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceRolloutId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceRolloutId_);
    }
    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.api.servicecontrol.v1.CheckResponse)) {
      return super.equals(obj);
    }
    com.google.api.servicecontrol.v1.CheckResponse other =
        (com.google.api.servicecontrol.v1.CheckResponse) obj;

    if (!getOperationId().equals(other.getOperationId())) return false;
    if (!getCheckErrorsList().equals(other.getCheckErrorsList())) return false;
    if (!getServiceConfigId().equals(other.getServiceConfigId())) return false;
    if (!getServiceRolloutId().equals(other.getServiceRolloutId())) return false;
    if (hasCheckInfo() != other.hasCheckInfo()) return false;
    if (hasCheckInfo()) {
      if (!getCheckInfo().equals(other.getCheckInfo())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER;
    hash = (53 * hash) + getOperationId().hashCode();
    if (getCheckErrorsCount() > 0) {
      hash = (37 * hash) + CHECK_ERRORS_FIELD_NUMBER;
      hash = (53 * hash) + getCheckErrorsList().hashCode();
    }
    hash = (37 * hash) + SERVICE_CONFIG_ID_FIELD_NUMBER;
    hash = (53 * hash) + getServiceConfigId().hashCode();
    hash = (37 * hash) + SERVICE_ROLLOUT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getServiceRolloutId().hashCode();
    if (hasCheckInfo()) {
      hash = (37 * hash) + CHECK_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getCheckInfo().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.api.servicecontrol.v1.CheckResponse parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.api.servicecontrol.v1.CheckResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.api.servicecontrol.v1.CheckResponse 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.api.servicecontrol.v1.CheckResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

  public static com.google.api.servicecontrol.v1.CheckResponse parseFrom(
      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.api.servicecontrol.v1.CheckResponse parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.api.servicecontrol.v1.CheckResponse parseDelimitedFrom(
      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.api.servicecontrol.v1.CheckResponse parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.api.servicecontrol.v1.CheckResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.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.api.servicecontrol.v1.CheckResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new 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>
   * Response message for the Check method.
   * </pre>
   *
   * Protobuf type {@code google.api.servicecontrol.v1.CheckResponse}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.api.servicecontrol.v1.CheckResponse)
      com.google.api.servicecontrol.v1.CheckResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.api.servicecontrol.v1.ServiceControllerProto
          .internal_static_google_api_servicecontrol_v1_CheckResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.api.servicecontrol.v1.ServiceControllerProto
          .internal_static_google_api_servicecontrol_v1_CheckResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.api.servicecontrol.v1.CheckResponse.class,
              com.google.api.servicecontrol.v1.CheckResponse.Builder.class);
    }

    // Construct using com.google.api.servicecontrol.v1.CheckResponse.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      operationId_ = "";
      if (checkErrorsBuilder_ == null) {
        checkErrors_ = java.util.Collections.emptyList();
      } else {
        checkErrors_ = null;
        checkErrorsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      serviceConfigId_ = "";
      serviceRolloutId_ = "";
      checkInfo_ = null;
      if (checkInfoBuilder_ != null) {
        checkInfoBuilder_.dispose();
        checkInfoBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.api.servicecontrol.v1.ServiceControllerProto
          .internal_static_google_api_servicecontrol_v1_CheckResponse_descriptor;
    }

    @java.lang.Override
    public com.google.api.servicecontrol.v1.CheckResponse getDefaultInstanceForType() {
      return com.google.api.servicecontrol.v1.CheckResponse.getDefaultInstance();
    }

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

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

    private void buildPartialRepeatedFields(com.google.api.servicecontrol.v1.CheckResponse result) {
      if (checkErrorsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          checkErrors_ = java.util.Collections.unmodifiableList(checkErrors_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.checkErrors_ = checkErrors_;
      } else {
        result.checkErrors_ = checkErrorsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.api.servicecontrol.v1.CheckResponse result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.operationId_ = operationId_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.serviceConfigId_ = serviceConfigId_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.serviceRolloutId_ = serviceRolloutId_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.checkInfo_ = checkInfoBuilder_ == null ? checkInfo_ : checkInfoBuilder_.build();
      }
    }

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

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

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

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

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

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor 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.api.servicecontrol.v1.CheckResponse) {
        return mergeFrom((com.google.api.servicecontrol.v1.CheckResponse) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.api.servicecontrol.v1.CheckResponse other) {
      if (other == com.google.api.servicecontrol.v1.CheckResponse.getDefaultInstance()) return this;
      if (!other.getOperationId().isEmpty()) {
        operationId_ = other.operationId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (checkErrorsBuilder_ == null) {
        if (!other.checkErrors_.isEmpty()) {
          if (checkErrors_.isEmpty()) {
            checkErrors_ = other.checkErrors_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureCheckErrorsIsMutable();
            checkErrors_.addAll(other.checkErrors_);
          }
          onChanged();
        }
      } else {
        if (!other.checkErrors_.isEmpty()) {
          if (checkErrorsBuilder_.isEmpty()) {
            checkErrorsBuilder_.dispose();
            checkErrorsBuilder_ = null;
            checkErrors_ = other.checkErrors_;
            bitField0_ = (bitField0_ & ~0x00000002);
            checkErrorsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getCheckErrorsFieldBuilder()
                    : null;
          } else {
            checkErrorsBuilder_.addAllMessages(other.checkErrors_);
          }
        }
      }
      if (!other.getServiceConfigId().isEmpty()) {
        serviceConfigId_ = other.serviceConfigId_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getServiceRolloutId().isEmpty()) {
        serviceRolloutId_ = other.serviceRolloutId_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.hasCheckInfo()) {
        mergeCheckInfo(other.getCheckInfo());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                operationId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                com.google.api.servicecontrol.v1.CheckError m =
                    input.readMessage(
                        com.google.api.servicecontrol.v1.CheckError.parser(), extensionRegistry);
                if (checkErrorsBuilder_ == null) {
                  ensureCheckErrorsIsMutable();
                  checkErrors_.add(m);
                } else {
                  checkErrorsBuilder_.addMessage(m);
                }
                break;
              } // case 18
            case 42:
              {
                serviceConfigId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 42
            case 50:
              {
                input.readMessage(getCheckInfoFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 50
            case 90:
              {
                serviceRolloutId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 90
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object operationId_ = "";
    /**
     *
     *
     * <pre>
     * The same operation_id value used in the
     * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * </pre>
     *
     * <code>string operation_id = 1;</code>
     *
     * @return The operationId.
     */
    public java.lang.String getOperationId() {
      java.lang.Object ref = operationId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        operationId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The same operation_id value used in the
     * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * </pre>
     *
     * <code>string operation_id = 1;</code>
     *
     * @return The bytes for operationId.
     */
    public com.google.protobuf.ByteString getOperationIdBytes() {
      java.lang.Object ref = operationId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        operationId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The same operation_id value used in the
     * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * </pre>
     *
     * <code>string operation_id = 1;</code>
     *
     * @param value The operationId to set.
     * @return This builder for chaining.
     */
    public Builder setOperationId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      operationId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The same operation_id value used in the
     * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * </pre>
     *
     * <code>string operation_id = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOperationId() {
      operationId_ = getDefaultInstance().getOperationId();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The same operation_id value used in the
     * [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
     * and diagnostics purposes.
     * </pre>
     *
     * <code>string operation_id = 1;</code>
     *
     * @param value The bytes for operationId to set.
     * @return This builder for chaining.
     */
    public Builder setOperationIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      operationId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.util.List<com.google.api.servicecontrol.v1.CheckError> checkErrors_ =
        java.util.Collections.emptyList();

    private void ensureCheckErrorsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        checkErrors_ =
            new java.util.ArrayList<com.google.api.servicecontrol.v1.CheckError>(checkErrors_);
        bitField0_ |= 0x00000002;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.api.servicecontrol.v1.CheckError,
            com.google.api.servicecontrol.v1.CheckError.Builder,
            com.google.api.servicecontrol.v1.CheckErrorOrBuilder>
        checkErrorsBuilder_;

    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public java.util.List<com.google.api.servicecontrol.v1.CheckError> getCheckErrorsList() {
      if (checkErrorsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(checkErrors_);
      } else {
        return checkErrorsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public int getCheckErrorsCount() {
      if (checkErrorsBuilder_ == null) {
        return checkErrors_.size();
      } else {
        return checkErrorsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public com.google.api.servicecontrol.v1.CheckError getCheckErrors(int index) {
      if (checkErrorsBuilder_ == null) {
        return checkErrors_.get(index);
      } else {
        return checkErrorsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder setCheckErrors(int index, com.google.api.servicecontrol.v1.CheckError value) {
      if (checkErrorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCheckErrorsIsMutable();
        checkErrors_.set(index, value);
        onChanged();
      } else {
        checkErrorsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder setCheckErrors(
        int index, com.google.api.servicecontrol.v1.CheckError.Builder builderForValue) {
      if (checkErrorsBuilder_ == null) {
        ensureCheckErrorsIsMutable();
        checkErrors_.set(index, builderForValue.build());
        onChanged();
      } else {
        checkErrorsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder addCheckErrors(com.google.api.servicecontrol.v1.CheckError value) {
      if (checkErrorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCheckErrorsIsMutable();
        checkErrors_.add(value);
        onChanged();
      } else {
        checkErrorsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder addCheckErrors(int index, com.google.api.servicecontrol.v1.CheckError value) {
      if (checkErrorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCheckErrorsIsMutable();
        checkErrors_.add(index, value);
        onChanged();
      } else {
        checkErrorsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder addCheckErrors(
        com.google.api.servicecontrol.v1.CheckError.Builder builderForValue) {
      if (checkErrorsBuilder_ == null) {
        ensureCheckErrorsIsMutable();
        checkErrors_.add(builderForValue.build());
        onChanged();
      } else {
        checkErrorsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder addCheckErrors(
        int index, com.google.api.servicecontrol.v1.CheckError.Builder builderForValue) {
      if (checkErrorsBuilder_ == null) {
        ensureCheckErrorsIsMutable();
        checkErrors_.add(index, builderForValue.build());
        onChanged();
      } else {
        checkErrorsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder addAllCheckErrors(
        java.lang.Iterable<? extends com.google.api.servicecontrol.v1.CheckError> values) {
      if (checkErrorsBuilder_ == null) {
        ensureCheckErrorsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, checkErrors_);
        onChanged();
      } else {
        checkErrorsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder clearCheckErrors() {
      if (checkErrorsBuilder_ == null) {
        checkErrors_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        checkErrorsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public Builder removeCheckErrors(int index) {
      if (checkErrorsBuilder_ == null) {
        ensureCheckErrorsIsMutable();
        checkErrors_.remove(index);
        onChanged();
      } else {
        checkErrorsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public com.google.api.servicecontrol.v1.CheckError.Builder getCheckErrorsBuilder(int index) {
      return getCheckErrorsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public com.google.api.servicecontrol.v1.CheckErrorOrBuilder getCheckErrorsOrBuilder(int index) {
      if (checkErrorsBuilder_ == null) {
        return checkErrors_.get(index);
      } else {
        return checkErrorsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public java.util.List<? extends com.google.api.servicecontrol.v1.CheckErrorOrBuilder>
        getCheckErrorsOrBuilderList() {
      if (checkErrorsBuilder_ != null) {
        return checkErrorsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(checkErrors_);
      }
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public com.google.api.servicecontrol.v1.CheckError.Builder addCheckErrorsBuilder() {
      return getCheckErrorsFieldBuilder()
          .addBuilder(com.google.api.servicecontrol.v1.CheckError.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public com.google.api.servicecontrol.v1.CheckError.Builder addCheckErrorsBuilder(int index) {
      return getCheckErrorsFieldBuilder()
          .addBuilder(index, com.google.api.servicecontrol.v1.CheckError.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Indicate the decision of the check.
     * If no check errors are present, the service should process the operation.
     * Otherwise the service should use the list of errors to determine the
     * appropriate action.
     * </pre>
     *
     * <code>repeated .google.api.servicecontrol.v1.CheckError check_errors = 2;</code>
     */
    public java.util.List<com.google.api.servicecontrol.v1.CheckError.Builder>
        getCheckErrorsBuilderList() {
      return getCheckErrorsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.api.servicecontrol.v1.CheckError,
            com.google.api.servicecontrol.v1.CheckError.Builder,
            com.google.api.servicecontrol.v1.CheckErrorOrBuilder>
        getCheckErrorsFieldBuilder() {
      if (checkErrorsBuilder_ == null) {
        checkErrorsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.api.servicecontrol.v1.CheckError,
                com.google.api.servicecontrol.v1.CheckError.Builder,
                com.google.api.servicecontrol.v1.CheckErrorOrBuilder>(
                checkErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
        checkErrors_ = null;
      }
      return checkErrorsBuilder_;
    }

    private java.lang.Object serviceConfigId_ = "";
    /**
     *
     *
     * <pre>
     * The actual config id used to process the request.
     * </pre>
     *
     * <code>string service_config_id = 5;</code>
     *
     * @return The serviceConfigId.
     */
    public java.lang.String getServiceConfigId() {
      java.lang.Object ref = serviceConfigId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        serviceConfigId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The actual config id used to process the request.
     * </pre>
     *
     * <code>string service_config_id = 5;</code>
     *
     * @return The bytes for serviceConfigId.
     */
    public com.google.protobuf.ByteString getServiceConfigIdBytes() {
      java.lang.Object ref = serviceConfigId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        serviceConfigId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The actual config id used to process the request.
     * </pre>
     *
     * <code>string service_config_id = 5;</code>
     *
     * @param value The serviceConfigId to set.
     * @return This builder for chaining.
     */
    public Builder setServiceConfigId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      serviceConfigId_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The actual config id used to process the request.
     * </pre>
     *
     * <code>string service_config_id = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearServiceConfigId() {
      serviceConfigId_ = getDefaultInstance().getServiceConfigId();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The actual config id used to process the request.
     * </pre>
     *
     * <code>string service_config_id = 5;</code>
     *
     * @param value The bytes for serviceConfigId to set.
     * @return This builder for chaining.
     */
    public Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      serviceConfigId_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object serviceRolloutId_ = "";
    /**
     *
     *
     * <pre>
     * The current service rollout id used to process the request.
     * </pre>
     *
     * <code>string service_rollout_id = 11;</code>
     *
     * @return The serviceRolloutId.
     */
    public java.lang.String getServiceRolloutId() {
      java.lang.Object ref = serviceRolloutId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        serviceRolloutId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The current service rollout id used to process the request.
     * </pre>
     *
     * <code>string service_rollout_id = 11;</code>
     *
     * @return The bytes for serviceRolloutId.
     */
    public com.google.protobuf.ByteString getServiceRolloutIdBytes() {
      java.lang.Object ref = serviceRolloutId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        serviceRolloutId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The current service rollout id used to process the request.
     * </pre>
     *
     * <code>string service_rollout_id = 11;</code>
     *
     * @param value The serviceRolloutId to set.
     * @return This builder for chaining.
     */
    public Builder setServiceRolloutId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      serviceRolloutId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The current service rollout id used to process the request.
     * </pre>
     *
     * <code>string service_rollout_id = 11;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearServiceRolloutId() {
      serviceRolloutId_ = getDefaultInstance().getServiceRolloutId();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The current service rollout id used to process the request.
     * </pre>
     *
     * <code>string service_rollout_id = 11;</code>
     *
     * @param value The bytes for serviceRolloutId to set.
     * @return This builder for chaining.
     */
    public Builder setServiceRolloutIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      serviceRolloutId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private com.google.api.servicecontrol.v1.CheckResponse.CheckInfo checkInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.api.servicecontrol.v1.CheckResponse.CheckInfo,
            com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder,
            com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder>
        checkInfoBuilder_;
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     *
     * @return Whether the checkInfo field is set.
     */
    public boolean hasCheckInfo() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     *
     * @return The checkInfo.
     */
    public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo getCheckInfo() {
      if (checkInfoBuilder_ == null) {
        return checkInfo_ == null
            ? com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance()
            : checkInfo_;
      } else {
        return checkInfoBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     */
    public Builder setCheckInfo(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo value) {
      if (checkInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkInfo_ = value;
      } else {
        checkInfoBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     */
    public Builder setCheckInfo(
        com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder builderForValue) {
      if (checkInfoBuilder_ == null) {
        checkInfo_ = builderForValue.build();
      } else {
        checkInfoBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     */
    public Builder mergeCheckInfo(com.google.api.servicecontrol.v1.CheckResponse.CheckInfo value) {
      if (checkInfoBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)
            && checkInfo_ != null
            && checkInfo_
                != com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance()) {
          getCheckInfoBuilder().mergeFrom(value);
        } else {
          checkInfo_ = value;
        }
      } else {
        checkInfoBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     */
    public Builder clearCheckInfo() {
      bitField0_ = (bitField0_ & ~0x00000010);
      checkInfo_ = null;
      if (checkInfoBuilder_ != null) {
        checkInfoBuilder_.dispose();
        checkInfoBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     */
    public com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder getCheckInfoBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getCheckInfoFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     */
    public com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder
        getCheckInfoOrBuilder() {
      if (checkInfoBuilder_ != null) {
        return checkInfoBuilder_.getMessageOrBuilder();
      } else {
        return checkInfo_ == null
            ? com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.getDefaultInstance()
            : checkInfo_;
      }
    }
    /**
     *
     *
     * <pre>
     * Feedback data returned from the server during processing a Check request.
     * </pre>
     *
     * <code>.google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.api.servicecontrol.v1.CheckResponse.CheckInfo,
            com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder,
            com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder>
        getCheckInfoFieldBuilder() {
      if (checkInfoBuilder_ == null) {
        checkInfoBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.api.servicecontrol.v1.CheckResponse.CheckInfo,
                com.google.api.servicecontrol.v1.CheckResponse.CheckInfo.Builder,
                com.google.api.servicecontrol.v1.CheckResponse.CheckInfoOrBuilder>(
                getCheckInfo(), getParentForChildren(), isClean());
        checkInfo_ = null;
      }
      return checkInfoBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.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.api.servicecontrol.v1.CheckResponse)
  }

  // @@protoc_insertion_point(class_scope:google.api.servicecontrol.v1.CheckResponse)
  private static final com.google.api.servicecontrol.v1.CheckResponse DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.api.servicecontrol.v1.CheckResponse();
  }

  public static com.google.api.servicecontrol.v1.CheckResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public com.google.api.servicecontrol.v1.CheckResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
