/** * Get the specified group. * * <p>Sample code: * * <pre><code> * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]"); * ErrorGroup response = errorGroupServiceClient.getGroup(groupName); * } * </code></pre> * * @param groupName [Required] The group resource name. Written as * <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>. * Call <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list"> * <code>groupStats.list</code></a> to return a list of groups belonging to * this project. * <p>Example: <code>projects/my-project-123/groups/my-group</code> * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ErrorGroup getGroup(GroupName groupName) { GetGroupRequest request = GetGroupRequest.newBuilder() .setGroupName(groupName == null ? null : groupName.toString()) .build(); return getGroup(request); }
/** * Get the specified group. * * <p>Sample code: * * <pre><code> * try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) { * GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]"); * ErrorGroup response = errorGroupServiceClient.getGroup(groupName.toString()); * } * </code></pre> * * @param groupName [Required] The group resource name. Written as * <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>. * Call <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list"> * <code>groupStats.list</code></a> to return a list of groups belonging to * this project. * <p>Example: <code>projects/my-project-123/groups/my-group</code> * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ErrorGroup getGroup(String groupName) { GetGroupRequest request = GetGroupRequest.newBuilder().setGroupName(groupName).build(); return getGroup(request); }