@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@Override public ListNotesRequest injectToken(ListNotesRequest payload, String token) { return ListNotesRequest.newBuilder(payload).setPageToken(token).build(); }
@Override public ListNotesRequest injectPageSize(ListNotesRequest payload, int pageSize) { return ListNotesRequest.newBuilder(payload).setPageSize(pageSize).build(); }
/** * Lists notes for the specified project. * * <p>Sample code: * * <pre><code> * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * String filter = ""; * for (Note element : grafeasV1Beta1Client.listNotes(parent.toString(), filter).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. * @param filter The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotesPagedResponse listNotes(String parent, String filter) { ListNotesRequest request = ListNotesRequest.newBuilder().setParent(parent).setFilter(filter).build(); return listNotes(request); }
/** * Lists notes for the specified project. * * <p>Sample code: * * <pre><code> * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * String filter = ""; * for (Note element : grafeasV1Beta1Client.listNotes(parent, filter).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param parent The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. * @param filter The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNotesPagedResponse listNotes(ProjectName parent, String filter) { ListNotesRequest request = ListNotesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setFilter(filter) .build(); return listNotes(request); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }