@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@Override public ListLogsRequest injectPageSize(ListLogsRequest payload, int pageSize) { return ListLogsRequest.newBuilder(payload).setPageSize(pageSize).build(); }
@Override public ListLogsRequest injectToken(ListLogsRequest payload, String token) { return ListLogsRequest.newBuilder(payload).setPageToken(token).build(); }
/** * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have * entries are listed. * * <p>Sample code: * * <pre><code> * try (LoggingClient loggingClient = LoggingClient.create()) { * ParentName parent = ProjectName.of("[PROJECT]"); * for (String element : loggingClient.listLogs(parent).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent Required. The resource name that owns the logs: * <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(ParentName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); }
/** * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have * entries are listed. * * <p>Sample code: * * <pre><code> * try (LoggingClient loggingClient = LoggingClient.create()) { * ParentName parent = ProjectName.of("[PROJECT]"); * for (String element : loggingClient.listLogs(parent.toString()).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent Required. The resource name that owns the logs: * <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(String parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent).build(); return listLogs(request); }
@Override public ListLogsRequest injectToken(ListLogsRequest payload, String token) { return ListLogsRequest.newBuilder(payload).setPageToken(token).build(); }
@Override public ListLogsRequest injectPageSize(ListLogsRequest payload, int pageSize) { return ListLogsRequest.newBuilder(payload).setPageSize(pageSize).build(); }
/** * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have * entries are listed. * * <p>Sample code: * * <pre><code> * try (LoggingClient loggingClient = LoggingClient.create()) { * ParentName parent = ProjectName.of("[PROJECT]"); * for (String element : loggingClient.listLogs(parent).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent Required. The resource name that owns the logs: * <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(ParentName parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listLogs(request); }
/** * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have * entries are listed. * * <p>Sample code: * * <pre><code> * try (LoggingClient loggingClient = LoggingClient.create()) { * ParentName parent = ProjectName.of("[PROJECT]"); * for (String element : loggingClient.listLogs(parent.toString()).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent Required. The resource name that owns the logs: * <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(String parent) { ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent).build(); return listLogs(request); }