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 LogQuerywithBatchSize(int batchSize)Create aLogQuerywith the given batch size.static LogQuerywithDefaults()Helper method for creating aLogQueryinstance with default values.static LogQuerywithEndTimeMillis(long endTimeMillis)Create aLogQuerywith the given end time.static LogQuerywithEndTimeUsec(long endTimeUsec)Create aLogQuerywith the given end time.static LogQuerywithIncludeAppLogs(boolean includeAppLogs)Create aLogQuerywith include application logs set.static LogQuerywithIncludeIncomplete(boolean includeIncomplete)Create aLogQuerywith the given include incomplete setting.static LogQuerywithMajorVersionIds(java.util.List<java.lang.String> versionIds)Create aLogQuerywith the given major version IDs.static LogQuerywithMinLogLevel(LogService.LogLevel minLogLevel)Create aLogQuerywith the given minimum log level.static LogQuerywithOffset(java.lang.String offset)Create aLogQuerywith the given offset.static LogQuerywithRequestIds(java.util.List<java.lang.String> requestIds)Create aLogQuerywith the given request IDs.static LogQuerywithStartTimeMillis(long startTimeMillis)Create aLogQuerywith the given start time.static LogQuerywithStartTimeUsec(long startTimeUsec)Create aLogQuerywith the given start time.static LogQuerywithVersions(java.util.List<LogQuery.Version> versions)Create aLogQuerywith the givenLogQuery.Versionvalues.
-
-
-
Method Detail
-
withOffset
public static LogQuery withOffset(java.lang.String offset)
Create aLogQuerywith the given offset. Shorthand forLogQuery.Builder.withDefaults().offset(offset);. Please read theLogQueryclass 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 aLogQuerywith the given start time. Shorthand forLogQuery.Builder.withDefaults().startTimeMillis(startTimeMillis);. Please read theLogQueryclass 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 aLogQuerywith the given start time. Shorthand forLogQuery.Builder.withDefaults().startTimeUsec(startTimeUsec);. Please read theLogQueryclass 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 aLogQuerywith the given end time. Shorthand forLogQuery.Builder.withDefaults().endTimeMillis(endTimeMillis);. Please read theLogQueryclass 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 aLogQuerywith the given end time. Shorthand forLogQuery.Builder.withDefaults().endTimeUsec(endTimeUsec);. Please read theLogQueryclass 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 aLogQuerywith the given batch size. Shorthand forLogQuery.Builder.withDefaults().batchSize(batchSize);. Please read theLogQueryclass 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 aLogQuerywith the given minimum log level. Shorthand forLogQuery.Builder.withDefaults().minLogLevel(minLogLevel);. Please read theLogQueryclass 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 aLogQuerywith the given include incomplete setting. Shorthand forLogQuery.Builder.withDefaults().includeIncomplete(includeIncomplete);. Please read theLogQueryclass 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 aLogQuerywith include application logs set. Shorthand forLogQuery.Builder.withDefaults().includeAppLogs(includeAppLogs);. Please read theLogQueryclass 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 aLogQuerywith the given major version IDs. Shorthand forLogQuery.Builder.withDefaults().majorVersionIds(versionIds);. Please read theLogQueryclass 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 aLogQuerywith the givenLogQuery.Versionvalues. Shorthand forLogQuery.Builder.withDefaults().versions(versions);. Please read theLogQueryclass 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 aLogQuerywith the given request IDs. Shorthand forLogQuery.Builder.withDefaults().requestIds(requestIds);. See theLogQueryclass 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()
-
-