/** * * * <pre> * A description of the changes to be applied to the specified * notification channel. The description must provide a definition for * fields to be updated; the names of these fields should also be * included in the `update_mask`. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 3;</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder> getNotificationChannelFieldBuilder() { if (notificationChannelBuilder_ == null) { notificationChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.monitoring.v3.NotificationChannel, com.google.monitoring.v3.NotificationChannel.Builder, com.google.monitoring.v3.NotificationChannelOrBuilder>( getNotificationChannel(), getParentForChildren(), isClean()); notificationChannel_ = null; } return notificationChannelBuilder_; }
/** * * * <pre> * A description of the changes to be applied to the specified * notification channel. The description must provide a definition for * fields to be updated; the names of these fields should also be * included in the `update_mask`. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 3;</code> */ public com.google.monitoring.v3.NotificationChannel.Builder getNotificationChannelBuilder() { onChanged(); return getNotificationChannelFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The fields to update. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; }
/** * Updates a notification channel. Fields not specified in the field mask remain unchanged. * * <p>Sample code: * * <pre><code> * try (NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.create()) { * FieldMask updateMask = FieldMask.newBuilder().build(); * NotificationChannel notificationChannel = NotificationChannel.newBuilder().build(); * NotificationChannel response = notificationChannelServiceClient.updateNotificationChannel(updateMask, notificationChannel); * } * </code></pre> * * @param updateMask The fields to update. * @param notificationChannel A description of the changes to be applied to the specified * notification channel. The description must provide a definition for fields to be updated; * the names of these fields should also be included in the `update_mask`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannel updateNotificationChannel( FieldMask updateMask, NotificationChannel notificationChannel) { UpdateNotificationChannelRequest request = UpdateNotificationChannelRequest.newBuilder() .setUpdateMask(updateMask) .setNotificationChannel(notificationChannel) .build(); return updateNotificationChannel(request); }
/** * Updates a notification channel. Fields not specified in the field mask remain unchanged. * * <p>Sample code: * * <pre><code> * try (NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.create()) { * FieldMask updateMask = FieldMask.newBuilder().build(); * NotificationChannel notificationChannel = NotificationChannel.newBuilder().build(); * NotificationChannel response = notificationChannelServiceClient.updateNotificationChannel(updateMask, notificationChannel); * } * </code></pre> * * @param updateMask The fields to update. * @param notificationChannel A description of the changes to be applied to the specified * notification channel. The description must provide a definition for fields to be updated; * the names of these fields should also be included in the `update_mask`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NotificationChannel updateNotificationChannel( FieldMask updateMask, NotificationChannel notificationChannel) { UpdateNotificationChannelRequest request = UpdateNotificationChannelRequest.newBuilder() .setUpdateMask(updateMask) .setNotificationChannel(notificationChannel) .build(); return updateNotificationChannel(request); }
private Builder() { maybeForceBuilderInitialization(); }
/** * * * <pre> * The fields to update. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /**
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@java.lang.Override public com.google.monitoring.v3.UpdateNotificationChannelRequest build() { com.google.monitoring.v3.UpdateNotificationChannelRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }