@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@Override public ListExclusionsRequest injectPageSize( ListExclusionsRequest payload, int pageSize) { return ListExclusionsRequest.newBuilder(payload).setPageSize(pageSize).build(); }
@Override public ListExclusionsRequest injectToken(ListExclusionsRequest payload, String token) { return ListExclusionsRequest.newBuilder(payload).setPageToken(token).build(); }
/** * Lists all the exclusions in a parent resource. * * <p>Sample code: * * <pre><code> * try (ConfigClient configClient = ConfigClient.create()) { * ParentName parent = ProjectName.of("[PROJECT]"); * for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent Required. The parent resource whose exclusions are to be listed. * <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 ListExclusionsPagedResponse listExclusions(ParentName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listExclusions(request); }
/** * Lists all the exclusions in a parent resource. * * <p>Sample code: * * <pre><code> * try (ConfigClient configClient = ConfigClient.create()) { * ParentName parent = ProjectName.of("[PROJECT]"); * for (LogExclusion element : configClient.listExclusions(parent.toString()).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent Required. The parent resource whose exclusions are to be listed. * <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 ListExclusionsPagedResponse listExclusions(String parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder().setParent(parent).build(); return listExclusions(request); }
@Override public ListExclusionsRequest injectPageSize( ListExclusionsRequest payload, int pageSize) { return ListExclusionsRequest.newBuilder(payload).setPageSize(pageSize).build(); }
@Override public ListExclusionsRequest injectToken(ListExclusionsRequest payload, String token) { return ListExclusionsRequest.newBuilder(payload).setPageToken(token).build(); }
/** * Lists all the exclusions in a parent resource. * * <p>Sample code: * * <pre><code> * try (ConfigClient configClient = ConfigClient.create()) { * ParentName parent = ProjectName.of("[PROJECT]"); * for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent Required. The parent resource whose exclusions are to be listed. * <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 ListExclusionsPagedResponse listExclusions(ParentName parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listExclusions(request); }
/** * Lists all the exclusions in a parent resource. * * <p>Sample code: * * <pre><code> * try (ConfigClient configClient = ConfigClient.create()) { * ParentName parent = ProjectName.of("[PROJECT]"); * for (LogExclusion element : configClient.listExclusions(parent.toString()).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent Required. The parent resource whose exclusions are to be listed. * <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 ListExclusionsPagedResponse listExclusions(String parent) { ListExclusionsRequest request = ListExclusionsRequest.newBuilder().setParent(parent).build(); return listExclusions(request); }