com.google.appengine.api.log
Class LogQuery.Builder
- java.lang.Object
-
- com.google.appengine.api.log.LogQuery.Builder
-
-
Constructor Summary
Constructors Constructor and Description Builder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static LogQuery
withBatchSize(int batchSize)
Create aLogQuery
with the given batch size.static LogQuery
withDefaults()
Helper method for creating aLogQuery
instance with default values.static LogQuery
withEndTimeMillis(long endTimeMillis)
Create aLogQuery
with the given end time.static LogQuery
withEndTimeUsec(long endTimeUsec)
Create aLogQuery
with the given end time.static LogQuery
withIncludeAppLogs(boolean includeAppLogs)
Create aLogQuery
with include application logs set.static LogQuery
withIncludeIncomplete(boolean includeIncomplete)
Create aLogQuery
with the given include incomplete setting.static LogQuery
withMajorVersionIds(java.util.List<java.lang.String> versionIds)
Create aLogQuery
with the given major version IDs.static LogQuery
withMinLogLevel(LogService.LogLevel minLogLevel)
Create aLogQuery
with the given minimum log level.static LogQuery
withOffset(java.lang.String offset)
Create aLogQuery
with the given offset.static LogQuery
withRequestIds(java.util.List<java.lang.String> requestIds)
Create aLogQuery
with the given request IDs.static LogQuery
withStartTimeMillis(long startTimeMillis)
Create aLogQuery
with the given start time.static LogQuery
withStartTimeUsec(long startTimeUsec)
Create aLogQuery
with the given start time.static LogQuery
withVersions(java.util.List<LogQuery.Version> versions)
Create aLogQuery
with the givenLogQuery.Version
values.
-
-
-
Method Detail
-
withOffset
public static LogQuery withOffset(java.lang.String offset)
Create aLogQuery
with the given offset. Shorthand forLogQuery.Builder.withDefaults().offset(offset);
. Please read theLogQuery
class javadoc for an explanation of how offsets are used.- Parameters:
offset
- the offset to use.- Returns:
- The newly created LogQuery instance.
-
withStartTimeMillis
public static LogQuery withStartTimeMillis(long startTimeMillis)
Create aLogQuery
with the given start time. Shorthand forLogQuery.Builder.withDefaults().startTimeMillis(startTimeMillis);
. Please read theLogQuery
class javadoc for an explanation of how start time is used.- Parameters:
startTimeMillis
- the start time to use, in milliseconds.- Returns:
- The newly created LogQuery instance.
-
withStartTimeUsec
public static LogQuery withStartTimeUsec(long startTimeUsec)
Create aLogQuery
with the given start time. Shorthand forLogQuery.Builder.withDefaults().startTimeUsec(startTimeUsec);
. Please read theLogQuery
class javadoc for an explanation of how start time is used.- Parameters:
startTimeUsec
- the start time to use, in microseconds.- Returns:
- The newly created LogQuery instance.
-
withEndTimeMillis
public static LogQuery withEndTimeMillis(long endTimeMillis)
Create aLogQuery
with the given end time. Shorthand forLogQuery.Builder.withDefaults().endTimeMillis(endTimeMillis);
. Please read theLogQuery
class javadoc for an explanation of how end time is used.- Parameters:
endTimeMillis
- the start time to use, in milliseconds.- Returns:
- The newly created LogQuery instance.
-
withEndTimeUsec
public static LogQuery withEndTimeUsec(long endTimeUsec)
Create aLogQuery
with the given end time. Shorthand forLogQuery.Builder.withDefaults().endTimeUsec(endTimeUsec);
. Please read theLogQuery
class javadoc for an explanation of how end time is used.- Parameters:
endTimeUsec
- the start time to use, in microseconds.- Returns:
- The newly created LogQuery instance.
-
withBatchSize
public static LogQuery withBatchSize(int batchSize)
Create aLogQuery
with the given batch size. Shorthand forLogQuery.Builder.withDefaults().batchSize(batchSize);
. Please read theLogQuery
class javadoc for an explanation of how batch size is used.- Parameters:
batchSize
- the batch size to set.- Returns:
- The newly created LogQuery instance.
-
withMinLogLevel
public static LogQuery withMinLogLevel(LogService.LogLevel minLogLevel)
Create aLogQuery
with the given minimum log level. Shorthand forLogQuery.Builder.withDefaults().minLogLevel(minLogLevel);
. Please read theLogQuery
class javadoc for an explanation of how minimum log level is used.- Parameters:
minLogLevel
- the minimum log level to set.- Returns:
- The newly created LogQuery instance.
-
withIncludeIncomplete
public static LogQuery withIncludeIncomplete(boolean includeIncomplete)
Create aLogQuery
with the given include incomplete setting. Shorthand forLogQuery.Builder.withDefaults().includeIncomplete(includeIncomplete);
. Please read theLogQuery
class javadoc for an explanation of how include incomplete is used.- Parameters:
includeIncomplete
- the inclusion value to set.- Returns:
- The newly created LogQuery instance.
-
withIncludeAppLogs
public static LogQuery withIncludeAppLogs(boolean includeAppLogs)
Create aLogQuery
with include application logs set. Shorthand forLogQuery.Builder.withDefaults().includeAppLogs(includeAppLogs);
. Please read theLogQuery
class javadoc for an explanation of the include application logs setting.- Parameters:
includeAppLogs
- the inclusion value to set.- Returns:
- The newly created LogQuery instance.
-
withMajorVersionIds
public static LogQuery withMajorVersionIds(java.util.List<java.lang.String> versionIds)
Create aLogQuery
with the given major version IDs. Shorthand forLogQuery.Builder.withDefaults().majorVersionIds(versionIds);
. Please read theLogQuery
class javadoc for an explanation of how the list of major version ids is used.- Parameters:
versionIds
- the major version id list to set.- Returns:
- The newly created LogQuery instance.
-
withVersions
public static LogQuery withVersions(java.util.List<LogQuery.Version> versions)
Create aLogQuery
with the givenLogQuery.Version
values. Shorthand forLogQuery.Builder.withDefaults().versions(versions);
. Please read theLogQuery
class javadoc for usage information.- Parameters:
versions
- the list to set.- Returns:
- The newly created LogQuery instance.
-
withRequestIds
public static LogQuery withRequestIds(java.util.List<java.lang.String> requestIds)
Create aLogQuery
with the given request IDs. Shorthand forLogQuery.Builder.withDefaults().requestIds(requestIds);
. See theLogQuery
class javadoc for an explanation of how the list of request ids is used.- Parameters:
requestIds
- the request id list to set.- Returns:
- The newly created LogQuery instance.
- Since:
- App Engine 1.7.4.
-
withDefaults
public static LogQuery withDefaults()
-
-