@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * Gets the note attached to the specified occurrence. Consumer projects can use this method to * get a note that belongs to a provider project. * * <p>Sample code: * * <pre><code> * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { * OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]"); * Note response = grafeasV1Beta1Client.getOccurrenceNote(name.toString()); * } * </code></pre> * * @param name The name of the occurrence in the form of * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Note getOccurrenceNote(String name) { GetOccurrenceNoteRequest request = GetOccurrenceNoteRequest.newBuilder().setName(name).build(); return getOccurrenceNote(request); }
/** * Gets the note attached to the specified occurrence. Consumer projects can use this method to * get a note that belongs to a provider project. * * <p>Sample code: * * <pre><code> * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { * OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]"); * Note response = grafeasV1Beta1Client.getOccurrenceNote(name); * } * </code></pre> * * @param name The name of the occurrence in the form of * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Note getOccurrenceNote(OccurrenceName name) { GetOccurrenceNoteRequest request = GetOccurrenceNoteRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); return getOccurrenceNote(request); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }