// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/logging/v2/logging.proto

package com.google.logging.v2;

/**
 * <pre>
 * The parameters to `ListLogEntries`.
 * </pre>
 *
 * Protobuf type {@code google.logging.v2.ListLogEntriesRequest}
 */
public  final class ListLogEntriesRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogEntriesRequest)
    ListLogEntriesRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ListLogEntriesRequest.newBuilder() to construct.
  private ListLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ListLogEntriesRequest() {
    projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    filter_ = "";
    orderBy_ = "";
    pageSize_ = 0;
    pageToken_ = "";
  }

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

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

            orderBy_ = s;
            break;
          }
          case 32: {

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

            pageToken_ = s;
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              resourceNames_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            resourceNames_.add(s);
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
        projectIds_ = projectIds_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        resourceNames_ = resourceNames_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.logging.v2.ListLogEntriesRequest.class, com.google.logging.v2.ListLogEntriesRequest.Builder.class);
  }

  private int bitField0_;
  public static final int PROJECT_IDS_FIELD_NUMBER = 1;
  private com.google.protobuf.LazyStringList projectIds_;
  /**
   * <pre>
   * Deprecated. Use `resource_names` instead.  One or more project identifiers
   * or project numbers from which to retrieve log entries.  Example:
   * `"my-project-1A"`. If present, these project identifiers are converted to
   * resource name format and added to the list of resources in
   * `resource_names`.
   * </pre>
   *
   * <code>repeated string project_ids = 1;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getProjectIdsList() {
    return projectIds_;
  }
  /**
   * <pre>
   * Deprecated. Use `resource_names` instead.  One or more project identifiers
   * or project numbers from which to retrieve log entries.  Example:
   * `"my-project-1A"`. If present, these project identifiers are converted to
   * resource name format and added to the list of resources in
   * `resource_names`.
   * </pre>
   *
   * <code>repeated string project_ids = 1;</code>
   */
  public int getProjectIdsCount() {
    return projectIds_.size();
  }
  /**
   * <pre>
   * Deprecated. Use `resource_names` instead.  One or more project identifiers
   * or project numbers from which to retrieve log entries.  Example:
   * `"my-project-1A"`. If present, these project identifiers are converted to
   * resource name format and added to the list of resources in
   * `resource_names`.
   * </pre>
   *
   * <code>repeated string project_ids = 1;</code>
   */
  public java.lang.String getProjectIds(int index) {
    return projectIds_.get(index);
  }
  /**
   * <pre>
   * Deprecated. Use `resource_names` instead.  One or more project identifiers
   * or project numbers from which to retrieve log entries.  Example:
   * `"my-project-1A"`. If present, these project identifiers are converted to
   * resource name format and added to the list of resources in
   * `resource_names`.
   * </pre>
   *
   * <code>repeated string project_ids = 1;</code>
   */
  public com.google.protobuf.ByteString
      getProjectIdsBytes(int index) {
    return projectIds_.getByteString(index);
  }

  public static final int RESOURCE_NAMES_FIELD_NUMBER = 8;
  private com.google.protobuf.LazyStringList resourceNames_;
  /**
   * <pre>
   * Required. Names of one or more parent resources from which to
   * retrieve log entries:
   *     "projects/[PROJECT_ID]"
   *     "organizations/[ORGANIZATION_ID]"
   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
   *     "folders/[FOLDER_ID]"
   * Projects listed in the `project_ids` field are added to this list.
   * </pre>
   *
   * <code>repeated string resource_names = 8;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getResourceNamesList() {
    return resourceNames_;
  }
  /**
   * <pre>
   * Required. Names of one or more parent resources from which to
   * retrieve log entries:
   *     "projects/[PROJECT_ID]"
   *     "organizations/[ORGANIZATION_ID]"
   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
   *     "folders/[FOLDER_ID]"
   * Projects listed in the `project_ids` field are added to this list.
   * </pre>
   *
   * <code>repeated string resource_names = 8;</code>
   */
  public int getResourceNamesCount() {
    return resourceNames_.size();
  }
  /**
   * <pre>
   * Required. Names of one or more parent resources from which to
   * retrieve log entries:
   *     "projects/[PROJECT_ID]"
   *     "organizations/[ORGANIZATION_ID]"
   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
   *     "folders/[FOLDER_ID]"
   * Projects listed in the `project_ids` field are added to this list.
   * </pre>
   *
   * <code>repeated string resource_names = 8;</code>
   */
  public java.lang.String getResourceNames(int index) {
    return resourceNames_.get(index);
  }
  /**
   * <pre>
   * Required. Names of one or more parent resources from which to
   * retrieve log entries:
   *     "projects/[PROJECT_ID]"
   *     "organizations/[ORGANIZATION_ID]"
   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
   *     "folders/[FOLDER_ID]"
   * Projects listed in the `project_ids` field are added to this list.
   * </pre>
   *
   * <code>repeated string resource_names = 8;</code>
   */
  public com.google.protobuf.ByteString
      getResourceNamesBytes(int index) {
    return resourceNames_.getByteString(index);
  }

  public static final int FILTER_FIELD_NUMBER = 2;
  private volatile java.lang.Object filter_;
  /**
   * <pre>
   * Optional. A filter that chooses which log entries to return.  See [Advanced
   * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
   * match the filter are returned.  An empty filter matches all log entries in
   * the resources listed in `resource_names`. Referencing a parent resource
   * that is not listed in `resource_names` will cause the filter to return no
   * results.
   * The maximum length of the filter is 20000 characters.
   * </pre>
   *
   * <code>string filter = 2;</code>
   */
  public java.lang.String getFilter() {
    java.lang.Object ref = filter_;
    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();
      filter_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Optional. A filter that chooses which log entries to return.  See [Advanced
   * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
   * match the filter are returned.  An empty filter matches all log entries in
   * the resources listed in `resource_names`. Referencing a parent resource
   * that is not listed in `resource_names` will cause the filter to return no
   * results.
   * The maximum length of the filter is 20000 characters.
   * </pre>
   *
   * <code>string filter = 2;</code>
   */
  public com.google.protobuf.ByteString
      getFilterBytes() {
    java.lang.Object ref = filter_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      filter_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORDER_BY_FIELD_NUMBER = 3;
  private volatile java.lang.Object orderBy_;
  /**
   * <pre>
   * Optional. How the results should be sorted.  Presently, the only permitted
   * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
   * option returns entries in order of increasing values of
   * `LogEntry.timestamp` (oldest first), and the second option returns entries
   * in order of decreasing timestamps (newest first).  Entries with equal
   * timestamps are returned in order of their `insert_id` values.
   * </pre>
   *
   * <code>string order_by = 3;</code>
   */
  public java.lang.String getOrderBy() {
    java.lang.Object ref = orderBy_;
    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();
      orderBy_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Optional. How the results should be sorted.  Presently, the only permitted
   * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
   * option returns entries in order of increasing values of
   * `LogEntry.timestamp` (oldest first), and the second option returns entries
   * in order of decreasing timestamps (newest first).  Entries with equal
   * timestamps are returned in order of their `insert_id` values.
   * </pre>
   *
   * <code>string order_by = 3;</code>
   */
  public com.google.protobuf.ByteString
      getOrderByBytes() {
    java.lang.Object ref = orderBy_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      orderBy_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAGE_SIZE_FIELD_NUMBER = 4;
  private int pageSize_;
  /**
   * <pre>
   * Optional. The maximum number of results to return from this request.
   * Non-positive values are ignored.  The presence of `next_page_token` in the
   * response indicates that more results might be available.
   * </pre>
   *
   * <code>int32 page_size = 4;</code>
   */
  public int getPageSize() {
    return pageSize_;
  }

  public static final int PAGE_TOKEN_FIELD_NUMBER = 5;
  private volatile java.lang.Object pageToken_;
  /**
   * <pre>
   * Optional. If present, then retrieve the next batch of results from the
   * preceding call to this method.  `page_token` must be the value of
   * `next_page_token` from the previous response.  The values of other method
   * parameters should be identical to those in the previous call.
   * </pre>
   *
   * <code>string page_token = 5;</code>
   */
  public java.lang.String getPageToken() {
    java.lang.Object ref = pageToken_;
    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();
      pageToken_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Optional. If present, then retrieve the next batch of results from the
   * preceding call to this method.  `page_token` must be the value of
   * `next_page_token` from the previous response.  The values of other method
   * parameters should be identical to those in the previous call.
   * </pre>
   *
   * <code>string page_token = 5;</code>
   */
  public com.google.protobuf.ByteString
      getPageTokenBytes() {
    java.lang.Object ref = pageToken_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pageToken_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < projectIds_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIds_.getRaw(i));
    }
    if (!getFilterBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
    }
    if (!getOrderByBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, orderBy_);
    }
    if (pageSize_ != 0) {
      output.writeInt32(4, pageSize_);
    }
    if (!getPageTokenBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_);
    }
    for (int i = 0; i < resourceNames_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, resourceNames_.getRaw(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    {
      int dataSize = 0;
      for (int i = 0; i < projectIds_.size(); i++) {
        dataSize += computeStringSizeNoTag(projectIds_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getProjectIdsList().size();
    }
    if (!getFilterBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
    }
    if (!getOrderByBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_);
    }
    if (pageSize_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, pageSize_);
    }
    if (!getPageTokenBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < resourceNames_.size(); i++) {
        dataSize += computeStringSizeNoTag(resourceNames_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getResourceNamesList().size();
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

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

    boolean result = true;
    result = result && getProjectIdsList()
        .equals(other.getProjectIdsList());
    result = result && getResourceNamesList()
        .equals(other.getResourceNamesList());
    result = result && getFilter()
        .equals(other.getFilter());
    result = result && getOrderBy()
        .equals(other.getOrderBy());
    result = result && (getPageSize()
        == other.getPageSize());
    result = result && getPageToken()
        .equals(other.getPageToken());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getProjectIdsCount() > 0) {
      hash = (37 * hash) + PROJECT_IDS_FIELD_NUMBER;
      hash = (53 * hash) + getProjectIdsList().hashCode();
    }
    if (getResourceNamesCount() > 0) {
      hash = (37 * hash) + RESOURCE_NAMES_FIELD_NUMBER;
      hash = (53 * hash) + getResourceNamesList().hashCode();
    }
    hash = (37 * hash) + FILTER_FIELD_NUMBER;
    hash = (53 * hash) + getFilter().hashCode();
    hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
    hash = (53 * hash) + getOrderBy().hashCode();
    hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + getPageSize();
    hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
    hash = (53 * hash) + getPageToken().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.logging.v2.ListLogEntriesRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.logging.v2.ListLogEntriesRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.logging.v2.ListLogEntriesRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.logging.v2.ListLogEntriesRequest 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.logging.v2.ListLogEntriesRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.logging.v2.ListLogEntriesRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.logging.v2.ListLogEntriesRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.logging.v2.ListLogEntriesRequest 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.logging.v2.ListLogEntriesRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.logging.v2.ListLogEntriesRequest 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.logging.v2.ListLogEntriesRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.logging.v2.ListLogEntriesRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.logging.v2.ListLogEntriesRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * The parameters to `ListLogEntries`.
   * </pre>
   *
   * Protobuf type {@code google.logging.v2.ListLogEntriesRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogEntriesRequest)
      com.google.logging.v2.ListLogEntriesRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.logging.v2.ListLogEntriesRequest.class, com.google.logging.v2.ListLogEntriesRequest.Builder.class);
    }

    // Construct using com.google.logging.v2.ListLogEntriesRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      filter_ = "";

      orderBy_ = "";

      pageSize_ = 0;

      pageToken_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor;
    }

    public com.google.logging.v2.ListLogEntriesRequest getDefaultInstanceForType() {
      return com.google.logging.v2.ListLogEntriesRequest.getDefaultInstance();
    }

    public com.google.logging.v2.ListLogEntriesRequest build() {
      com.google.logging.v2.ListLogEntriesRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.logging.v2.ListLogEntriesRequest buildPartial() {
      com.google.logging.v2.ListLogEntriesRequest result = new com.google.logging.v2.ListLogEntriesRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        projectIds_ = projectIds_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.projectIds_ = projectIds_;
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        resourceNames_ = resourceNames_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.resourceNames_ = resourceNames_;
      result.filter_ = filter_;
      result.orderBy_ = orderBy_;
      result.pageSize_ = pageSize_;
      result.pageToken_ = pageToken_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.google.logging.v2.ListLogEntriesRequest other) {
      if (other == com.google.logging.v2.ListLogEntriesRequest.getDefaultInstance()) return this;
      if (!other.projectIds_.isEmpty()) {
        if (projectIds_.isEmpty()) {
          projectIds_ = other.projectIds_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureProjectIdsIsMutable();
          projectIds_.addAll(other.projectIds_);
        }
        onChanged();
      }
      if (!other.resourceNames_.isEmpty()) {
        if (resourceNames_.isEmpty()) {
          resourceNames_ = other.resourceNames_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureResourceNamesIsMutable();
          resourceNames_.addAll(other.resourceNames_);
        }
        onChanged();
      }
      if (!other.getFilter().isEmpty()) {
        filter_ = other.filter_;
        onChanged();
      }
      if (!other.getOrderBy().isEmpty()) {
        orderBy_ = other.orderBy_;
        onChanged();
      }
      if (other.getPageSize() != 0) {
        setPageSize(other.getPageSize());
      }
      if (!other.getPageToken().isEmpty()) {
        pageToken_ = other.pageToken_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private com.google.protobuf.LazyStringList projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureProjectIdsIsMutable() {
      if (!((bitField0_ & 0x00000001) == 0x00000001)) {
        projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getProjectIdsList() {
      return projectIds_.getUnmodifiableView();
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public int getProjectIdsCount() {
      return projectIds_.size();
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public java.lang.String getProjectIds(int index) {
      return projectIds_.get(index);
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public com.google.protobuf.ByteString
        getProjectIdsBytes(int index) {
      return projectIds_.getByteString(index);
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public Builder setProjectIds(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureProjectIdsIsMutable();
      projectIds_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public Builder addProjectIds(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureProjectIdsIsMutable();
      projectIds_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public Builder addAllProjectIds(
        java.lang.Iterable<java.lang.String> values) {
      ensureProjectIdsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, projectIds_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public Builder clearProjectIds() {
      projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Deprecated. Use `resource_names` instead.  One or more project identifiers
     * or project numbers from which to retrieve log entries.  Example:
     * `"my-project-1A"`. If present, these project identifiers are converted to
     * resource name format and added to the list of resources in
     * `resource_names`.
     * </pre>
     *
     * <code>repeated string project_ids = 1;</code>
     */
    public Builder addProjectIdsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureProjectIdsIsMutable();
      projectIds_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureResourceNamesIsMutable() {
      if (!((bitField0_ & 0x00000002) == 0x00000002)) {
        resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getResourceNamesList() {
      return resourceNames_.getUnmodifiableView();
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public int getResourceNamesCount() {
      return resourceNames_.size();
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public java.lang.String getResourceNames(int index) {
      return resourceNames_.get(index);
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public com.google.protobuf.ByteString
        getResourceNamesBytes(int index) {
      return resourceNames_.getByteString(index);
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public Builder setResourceNames(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureResourceNamesIsMutable();
      resourceNames_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public Builder addResourceNames(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureResourceNamesIsMutable();
      resourceNames_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public Builder addAllResourceNames(
        java.lang.Iterable<java.lang.String> values) {
      ensureResourceNamesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, resourceNames_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public Builder clearResourceNames() {
      resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. Names of one or more parent resources from which to
     * retrieve log entries:
     *     "projects/[PROJECT_ID]"
     *     "organizations/[ORGANIZATION_ID]"
     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
     *     "folders/[FOLDER_ID]"
     * Projects listed in the `project_ids` field are added to this list.
     * </pre>
     *
     * <code>repeated string resource_names = 8;</code>
     */
    public Builder addResourceNamesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureResourceNamesIsMutable();
      resourceNames_.add(value);
      onChanged();
      return this;
    }

    private java.lang.Object filter_ = "";
    /**
     * <pre>
     * Optional. A filter that chooses which log entries to return.  See [Advanced
     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
     * match the filter are returned.  An empty filter matches all log entries in
     * the resources listed in `resource_names`. Referencing a parent resource
     * that is not listed in `resource_names` will cause the filter to return no
     * results.
     * The maximum length of the filter is 20000 characters.
     * </pre>
     *
     * <code>string filter = 2;</code>
     */
    public java.lang.String getFilter() {
      java.lang.Object ref = filter_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        filter_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Optional. A filter that chooses which log entries to return.  See [Advanced
     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
     * match the filter are returned.  An empty filter matches all log entries in
     * the resources listed in `resource_names`. Referencing a parent resource
     * that is not listed in `resource_names` will cause the filter to return no
     * results.
     * The maximum length of the filter is 20000 characters.
     * </pre>
     *
     * <code>string filter = 2;</code>
     */
    public com.google.protobuf.ByteString
        getFilterBytes() {
      java.lang.Object ref = filter_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        filter_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Optional. A filter that chooses which log entries to return.  See [Advanced
     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
     * match the filter are returned.  An empty filter matches all log entries in
     * the resources listed in `resource_names`. Referencing a parent resource
     * that is not listed in `resource_names` will cause the filter to return no
     * results.
     * The maximum length of the filter is 20000 characters.
     * </pre>
     *
     * <code>string filter = 2;</code>
     */
    public Builder setFilter(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      filter_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional. A filter that chooses which log entries to return.  See [Advanced
     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
     * match the filter are returned.  An empty filter matches all log entries in
     * the resources listed in `resource_names`. Referencing a parent resource
     * that is not listed in `resource_names` will cause the filter to return no
     * results.
     * The maximum length of the filter is 20000 characters.
     * </pre>
     *
     * <code>string filter = 2;</code>
     */
    public Builder clearFilter() {
      
      filter_ = getDefaultInstance().getFilter();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional. A filter that chooses which log entries to return.  See [Advanced
     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
     * match the filter are returned.  An empty filter matches all log entries in
     * the resources listed in `resource_names`. Referencing a parent resource
     * that is not listed in `resource_names` will cause the filter to return no
     * results.
     * The maximum length of the filter is 20000 characters.
     * </pre>
     *
     * <code>string filter = 2;</code>
     */
    public Builder setFilterBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      filter_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object orderBy_ = "";
    /**
     * <pre>
     * Optional. How the results should be sorted.  Presently, the only permitted
     * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
     * option returns entries in order of increasing values of
     * `LogEntry.timestamp` (oldest first), and the second option returns entries
     * in order of decreasing timestamps (newest first).  Entries with equal
     * timestamps are returned in order of their `insert_id` values.
     * </pre>
     *
     * <code>string order_by = 3;</code>
     */
    public java.lang.String getOrderBy() {
      java.lang.Object ref = orderBy_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        orderBy_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Optional. How the results should be sorted.  Presently, the only permitted
     * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
     * option returns entries in order of increasing values of
     * `LogEntry.timestamp` (oldest first), and the second option returns entries
     * in order of decreasing timestamps (newest first).  Entries with equal
     * timestamps are returned in order of their `insert_id` values.
     * </pre>
     *
     * <code>string order_by = 3;</code>
     */
    public com.google.protobuf.ByteString
        getOrderByBytes() {
      java.lang.Object ref = orderBy_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        orderBy_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Optional. How the results should be sorted.  Presently, the only permitted
     * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
     * option returns entries in order of increasing values of
     * `LogEntry.timestamp` (oldest first), and the second option returns entries
     * in order of decreasing timestamps (newest first).  Entries with equal
     * timestamps are returned in order of their `insert_id` values.
     * </pre>
     *
     * <code>string order_by = 3;</code>
     */
    public Builder setOrderBy(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      orderBy_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional. How the results should be sorted.  Presently, the only permitted
     * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
     * option returns entries in order of increasing values of
     * `LogEntry.timestamp` (oldest first), and the second option returns entries
     * in order of decreasing timestamps (newest first).  Entries with equal
     * timestamps are returned in order of their `insert_id` values.
     * </pre>
     *
     * <code>string order_by = 3;</code>
     */
    public Builder clearOrderBy() {
      
      orderBy_ = getDefaultInstance().getOrderBy();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional. How the results should be sorted.  Presently, the only permitted
     * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
     * option returns entries in order of increasing values of
     * `LogEntry.timestamp` (oldest first), and the second option returns entries
     * in order of decreasing timestamps (newest first).  Entries with equal
     * timestamps are returned in order of their `insert_id` values.
     * </pre>
     *
     * <code>string order_by = 3;</code>
     */
    public Builder setOrderByBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      orderBy_ = value;
      onChanged();
      return this;
    }

    private int pageSize_ ;
    /**
     * <pre>
     * Optional. The maximum number of results to return from this request.
     * Non-positive values are ignored.  The presence of `next_page_token` in the
     * response indicates that more results might be available.
     * </pre>
     *
     * <code>int32 page_size = 4;</code>
     */
    public int getPageSize() {
      return pageSize_;
    }
    /**
     * <pre>
     * Optional. The maximum number of results to return from this request.
     * Non-positive values are ignored.  The presence of `next_page_token` in the
     * response indicates that more results might be available.
     * </pre>
     *
     * <code>int32 page_size = 4;</code>
     */
    public Builder setPageSize(int value) {
      
      pageSize_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional. The maximum number of results to return from this request.
     * Non-positive values are ignored.  The presence of `next_page_token` in the
     * response indicates that more results might be available.
     * </pre>
     *
     * <code>int32 page_size = 4;</code>
     */
    public Builder clearPageSize() {
      
      pageSize_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object pageToken_ = "";
    /**
     * <pre>
     * Optional. If present, then retrieve the next batch of results from the
     * preceding call to this method.  `page_token` must be the value of
     * `next_page_token` from the previous response.  The values of other method
     * parameters should be identical to those in the previous call.
     * </pre>
     *
     * <code>string page_token = 5;</code>
     */
    public java.lang.String getPageToken() {
      java.lang.Object ref = pageToken_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pageToken_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Optional. If present, then retrieve the next batch of results from the
     * preceding call to this method.  `page_token` must be the value of
     * `next_page_token` from the previous response.  The values of other method
     * parameters should be identical to those in the previous call.
     * </pre>
     *
     * <code>string page_token = 5;</code>
     */
    public com.google.protobuf.ByteString
        getPageTokenBytes() {
      java.lang.Object ref = pageToken_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pageToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Optional. If present, then retrieve the next batch of results from the
     * preceding call to this method.  `page_token` must be the value of
     * `next_page_token` from the previous response.  The values of other method
     * parameters should be identical to those in the previous call.
     * </pre>
     *
     * <code>string page_token = 5;</code>
     */
    public Builder setPageToken(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      pageToken_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional. If present, then retrieve the next batch of results from the
     * preceding call to this method.  `page_token` must be the value of
     * `next_page_token` from the previous response.  The values of other method
     * parameters should be identical to those in the previous call.
     * </pre>
     *
     * <code>string page_token = 5;</code>
     */
    public Builder clearPageToken() {
      
      pageToken_ = getDefaultInstance().getPageToken();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Optional. If present, then retrieve the next batch of results from the
     * preceding call to this method.  `page_token` must be the value of
     * `next_page_token` from the previous response.  The values of other method
     * parameters should be identical to those in the previous call.
     * </pre>
     *
     * <code>string page_token = 5;</code>
     */
    public Builder setPageTokenBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      pageToken_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogEntriesRequest)
  }

  // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogEntriesRequest)
  private static final com.google.logging.v2.ListLogEntriesRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.logging.v2.ListLogEntriesRequest();
  }

  public static com.google.logging.v2.ListLogEntriesRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.google.logging.v2.ListLogEntriesRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

