/** * Updates an existing group. You can change any group attributes except `name`. * * <p>Sample code: * * <pre><code> * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * Group group = Group.newBuilder().build(); * Group response = groupServiceClient.updateGroup(group); * } * </code></pre> * * @param group The new definition of the group. All fields of the existing group, excepting * `name`, are replaced with the corresponding fields of this group. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Group updateGroup(Group group) { UpdateGroupRequest request = UpdateGroupRequest.newBuilder().setGroup(group).build(); return updateGroup(request); }
/** * Updates an existing group. You can change any group attributes except `name`. * * <p>Sample code: * * <pre><code> * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * Group group = Group.newBuilder().build(); * Group response = groupServiceClient.updateGroup(group); * } * </code></pre> * * @param group The new definition of the group. All fields of the existing group, excepting * `name`, are replaced with the corresponding fields of this group. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Group updateGroup(Group group) { UpdateGroupRequest request = UpdateGroupRequest.newBuilder().setGroup(group).build(); return updateGroup(request); }