/** * * * <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 [deprecated = true];</code> */ @java.lang.Deprecated 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 [deprecated = true];</code> */ @java.lang.Deprecated public Builder setProjectIds(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureProjectIdsIsMutable(); projectIds_.set(index, 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 setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = 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 setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); 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 setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } orderBy_ = 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 addResourceNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); 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 addResourceNames(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.add(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 setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = 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 [deprecated = true];</code> */ @java.lang.Deprecated public Builder clearProjectIds() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); 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 setResourceNames(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceNamesIsMutable(); resourceNames_.set(index, 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. 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; }
/** * * * <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> * 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> * 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 [deprecated = true];</code> */ @java.lang.Deprecated public Builder addAllProjectIds(java.lang.Iterable<java.lang.String> values) { ensureProjectIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectIds_); 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. 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. 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. 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; }