/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /**
/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder addEntries(com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * If there might be more results than those appearing in this response, then * `nextPageToken` is included. To get the next set of results, call this * method again using the value of `nextPageToken` as `pageToken`. * If a value for `next_page_token` appears and the `entries` field is empty, * it means that the search found no log entries so far but it did not have * time to search all the possible log entries. Retry the method with this * value for `page_token` to continue the search. Alternatively, consider * speeding up the search by changing your filter to specify a single log name * or resource type, or to narrow the time range of the search. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * If there might be more results than those appearing in this response, then * `nextPageToken` is included. To get the next set of results, call this * method again using the value of `nextPageToken` as `pageToken`. * If a value for `next_page_token` appears and the `entries` field is empty, * it means that the search found no log entries so far but it did not have * time to search all the possible log entries. Retry the method with this * value for `page_token` to continue the search. Alternatively, consider * speeding up the search by changing your filter to specify a single log name * or resource type, or to narrow the time range of the search. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; }
/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder addAllEntries( java.lang.Iterable<? extends com.google.logging.v2.LogEntry> values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * If there might be more results than those appearing in this response, then * `nextPageToken` is included. To get the next set of results, call this * method again using the value of `nextPageToken` as `pageToken`. * If a value for `next_page_token` appears and the `entries` field is empty, * it means that the search found no log entries so far but it did not have * time to search all the possible log entries. Retry the method with this * value for `page_token` to continue the search. Alternatively, consider * speeding up the search by changing your filter to specify a single log name * or resource type, or to narrow the time range of the search. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /**
/** * * * <pre> * A list of log entries. If `entries` is empty, `nextPageToken` may still be * returned, indicating that more entries may exist. See `nextPageToken` for * more information. * </pre> * * <code>repeated .google.logging.v2.LogEntry entries = 1;</code> */ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /**