@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * Creates new notes in batch. * * <p>Sample code: * * <pre><code> * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Map<String, Note> notes = new HashMap<>(); * BatchCreateNotesResponse response = grafeasV1Beta1Client.batchCreateNotes(parent.toString(), notes); * } * </code></pre> * * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the * notes are to be created. * @param notes The notes to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateNotesResponse batchCreateNotes(String parent, Map<String, Note> notes) { BatchCreateNotesRequest request = BatchCreateNotesRequest.newBuilder().setParent(parent).putAllNotes(notes).build(); return batchCreateNotes(request); }
/** * Creates new notes in batch. * * <p>Sample code: * * <pre><code> * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Map<String, Note> notes = new HashMap<>(); * BatchCreateNotesResponse response = grafeasV1Beta1Client.batchCreateNotes(parent, notes); * } * </code></pre> * * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the * notes are to be created. * @param notes The notes to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchCreateNotesResponse batchCreateNotes( ProjectName parent, Map<String, Note> notes) { BatchCreateNotesRequest request = BatchCreateNotesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .putAllNotes(notes) .build(); return batchCreateNotes(request); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }