Create a LogQuery with the given batch size.
Shorthand for LogQuery.Builder.withDefaults().batchSize(batchSize);.
Please read the LogQuery class javadoc for an explanation of
how batch size is used.
Create a LogQuery with the given end time. Shorthand for
LogQuery.Builder.withDefaults().endTimeMillis(endTimeMillis);. Please read the LogQuery class javadoc for an explanation of how end time is used.
Create a LogQuery with the given end time.
Shorthand for LogQuery.Builder.withDefaults().endTimeUsec(endTimeUsec);.
Please read the LogQuery class javadoc for an explanation of
how end time is used.
Create a LogQuery with include application logs set.
Shorthand for LogQuery.Builder.withDefaults().includeAppLogs(includeAppLogs);.
Please read the LogQuery class javadoc for an explanation of
the include application logs setting.
Create a LogQuery with the given include incomplete setting.
Shorthand for
LogQuery.Builder.withDefaults().includeIncomplete(includeIncomplete);.
Please read the LogQuery class javadoc for an explanation of
how include incomplete is used.
Create a LogQuery with the given major version IDs.
Shorthand for LogQuery.Builder.withDefaults().majorVersionIds(versionIds);.
Please read the LogQuery class javadoc for an explanation of
how the list of major version ids is used.
Create a LogQuery with the given minimum log level.
Shorthand for LogQuery.Builder.withDefaults().minLogLevel(minLogLevel);.
Please read the LogQuery class javadoc for an explanation of
how minimum log level is used.
Create a LogQuery with the given offset.
Shorthand for LogQuery.Builder.withDefaults().offset(offset);.
Please read the LogQuery class javadoc for an explanation of
how offsets are used.
Create a LogQuery with the given request IDs.
Shorthand for LogQuery.Builder.withDefaults().requestIds(requestIds);.
See the LogQuery class javadoc for an explanation of
how the list of request ids is used.
Create a LogQuery with the given start time.
Shorthand for LogQuery.Builder.withDefaults().startTimeMillis(startTimeMillis);.
Please read the LogQuery class javadoc for an explanation of
how start time is used.
Create a LogQuery with the given start time.
Shorthand for LogQuery.Builder.withDefaults().startTimeUsec(startTimeUsec);.
Please read the LogQuery class javadoc for an explanation of
how start time is used.
Create a LogQuery with the given Version values.
Shorthand for
LogQuery.Builder.withDefaults().versions(versions);.
Please read the LogQuery class javadoc for usage information.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eLogQuery.Builder\u003c/code\u003e provides static methods for creating \u003ccode\u003eLogQuery\u003c/code\u003e instances, allowing for customizable or default configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ewithDefaults()\u003c/code\u003e method creates a \u003ccode\u003eLogQuery\u003c/code\u003e instance with pre-set default values, as defined in the \u003ccode\u003eLogQuery\u003c/code\u003e class javadoc.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003ewithBatchSize()\u003c/code\u003e, \u003ccode\u003ewithEndTimeMillis()\u003c/code\u003e, and \u003ccode\u003ewithStartTimeUsec()\u003c/code\u003e allow users to create \u003ccode\u003eLogQuery\u003c/code\u003e instances with specific batch sizes and time ranges.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogQuery\u003c/code\u003e instances can be configured to include app logs, incomplete logs, specific major version IDs, request IDs, or minimum log levels using their respective methods.\u003c/p\u003e\n"],["\u003cp\u003eMethods \u003ccode\u003ewithStartTimeMillis\u003c/code\u003e and \u003ccode\u003ewithStartTimeUsec\u003c/code\u003e can be used to set the start time of logs to query, in either milliseconds or microseconds respectively.\u003c/p\u003e\n"]]],[],null,["# Class LogQuery.Builder (2.0.0)\n\n public static final class LogQuery.Builder\n\nContains static creation methods for [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery). \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e LogQuery.Builder \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### withBatchSize(int batchSize)\n\n public static LogQuery withBatchSize(int batchSize)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given batch size.\nShorthand for `LogQuery.Builder.withDefaults().batchSize(batchSize);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow batch size is used.\n\n### withDefaults()\n\n public static LogQuery withDefaults()\n\nHelper method for creating a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) instance with\ndefault values. Please read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an\nexplanation of the defaults.\n\n### withEndTimeMillis(long endTimeMillis)\n\n public static LogQuery withEndTimeMillis(long endTimeMillis)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given end time. Shorthand for `\nLogQuery.Builder.withDefaults().endTimeMillis(endTimeMillis);`. Please read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of how end time is used.\n\n### withEndTimeUsec(long endTimeUsec)\n\n public static LogQuery withEndTimeUsec(long endTimeUsec)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given end time.\nShorthand for `LogQuery.Builder.withDefaults().endTimeUsec(endTimeUsec);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow end time is used.\n\n### withIncludeAppLogs(boolean includeAppLogs)\n\n public static LogQuery withIncludeAppLogs(boolean includeAppLogs)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with include application logs set.\nShorthand for `LogQuery.Builder.withDefaults().includeAppLogs(includeAppLogs);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nthe include application logs setting.\n\n### withIncludeIncomplete(boolean includeIncomplete)\n\n public static LogQuery withIncludeIncomplete(boolean includeIncomplete)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given include incomplete setting.\nShorthand for\n`LogQuery.Builder.withDefaults().includeIncomplete(includeIncomplete);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow include incomplete is used.\n\n### withMajorVersionIds(List\\\u003cString\\\u003e versionIds)\n\n public static LogQuery withMajorVersionIds(List\u003cString\u003e versionIds)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given major version IDs.\nShorthand for `LogQuery.Builder.withDefaults().majorVersionIds(versionIds);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow the list of major version ids is used.\n\n### withMinLogLevel(LogService.LogLevel minLogLevel)\n\n public static LogQuery withMinLogLevel(LogService.LogLevel minLogLevel)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given minimum log level.\nShorthand for `LogQuery.Builder.withDefaults().minLogLevel(minLogLevel);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow minimum log level is used.\n\n### withOffset(String offset)\n\n public static LogQuery withOffset(String offset)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given offset.\nShorthand for `LogQuery.Builder.withDefaults().offset(offset);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow offsets are used.\n\n### withRequestIds(List\\\u003cString\\\u003e requestIds)\n\n public static LogQuery withRequestIds(List\u003cString\u003e requestIds)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given request IDs.\nShorthand for `LogQuery.Builder.withDefaults().requestIds(requestIds);`.\nSee the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow the list of request ids is used.\n\n### withStartTimeMillis(long startTimeMillis)\n\n public static LogQuery withStartTimeMillis(long startTimeMillis)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given start time.\nShorthand for `LogQuery.Builder.withDefaults().startTimeMillis(startTimeMillis);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow start time is used.\n\n### withStartTimeUsec(long startTimeUsec)\n\n public static LogQuery withStartTimeUsec(long startTimeUsec)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given start time.\nShorthand for `LogQuery.Builder.withDefaults().startTimeUsec(startTimeUsec);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for an explanation of\nhow start time is used.\n\n### withVersions(List\\\u003cLogQuery.Version\\\u003e versions)\n\n public static LogQuery withVersions(List\u003cLogQuery.Version\u003e versions)\n\nCreate a [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) with the given [Version](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery.Version) values.\nShorthand for\n`LogQuery.Builder.withDefaults().versions(versions);`.\nPlease read the [LogQuery](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.LogQuery) class javadoc for usage information.\n\nConstructors\n------------\n\n### Builder()\n\n public Builder()"]]