@java.lang.Override public com.google.monitoring.v3.NotificationChannel getDefaultInstanceForType() { return com.google.monitoring.v3.NotificationChannel.getDefaultInstance(); }
/** * * * <pre> * The definition of the `NotificationChannel` to create. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 2;</code> */ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } /**
/** * * * <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 getNotificationChannel() { return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } /**
/** * * * <pre> * The definition of the `NotificationChannel` to create. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 2;</code> */ public com.google.monitoring.v3.NotificationChannel getNotificationChannel() { if (notificationChannelBuilder_ == null) { return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } else { return notificationChannelBuilder_.getMessage(); } } /**
/** * * * <pre> * The definition of the `NotificationChannel` to create. * </pre> * * <code>.google.monitoring.v3.NotificationChannel notification_channel = 2;</code> */ public com.google.monitoring.v3.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { if (notificationChannelBuilder_ != null) { return notificationChannelBuilder_.getMessageOrBuilder(); } else { return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } } /**
/** * * * <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.NotificationChannelOrBuilder getNotificationChannelOrBuilder() { if (notificationChannelBuilder_ != null) { return notificationChannelBuilder_.getMessageOrBuilder(); } else { return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } } /**
/** * * * <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 getNotificationChannel() { if (notificationChannelBuilder_ == null) { return notificationChannel_ == null ? com.google.monitoring.v3.NotificationChannel.getDefaultInstance() : notificationChannel_; } else { return notificationChannelBuilder_.getMessage(); } } /**
/** * * * <pre> * The notification channels defined for the specified project. * </pre> * * <code>repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;</code> */ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChannelsBuilder() { return getNotificationChannelsFieldBuilder() .addBuilder(com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); } /**
/** * * * <pre> * The notification channels defined for the specified project. * </pre> * * <code>repeated .google.monitoring.v3.NotificationChannel notification_channels = 3;</code> */ public com.google.monitoring.v3.NotificationChannel.Builder addNotificationChannelsBuilder( int index) { return getNotificationChannelsFieldBuilder() .addBuilder(index, com.google.monitoring.v3.NotificationChannel.getDefaultInstance()); } /**
/** * * * <pre> * The full REST resource name for this channel. The syntax is: * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] * The `[CHANNEL_ID]` is automatically assigned by the server on creation. * </pre> * * <code>string name = 6;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * The type of the notification channel. This field matches the * value of the [NotificationChannelDescriptor.type][google.monitoring.v3.NotificationChannelDescriptor.type] field. * </pre> * * <code>string type = 1;</code> */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /**
/** * * * <pre> * An optional human-readable description of this notification channel. This * description may provide additional details, beyond the display * name, for the channel. This may not exceeed 1024 Unicode characters. * </pre> * * <code>string description = 4;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * * * <pre> * An optional human-readable name for this notification channel. It is * recommended that you specify a non-empty and unique name in order to * make it easier to identify the channels in your project, though this is * not enforced. The display name is limited to 512 Unicode characters. * </pre> * * <code>string display_name = 3;</code> */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.monitoring.v3.NotificationChannel other) { if (other == com.google.monitoring.v3.NotificationChannel.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); if (other.verificationStatus_ != 0) { setVerificationStatusValue(other.getVerificationStatusValue()); } if (other.hasEnabled()) { mergeEnabled(other.getEnabled()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) .setSchemaDescriptor( new NotificationChannelServiceMethodDescriptorSupplier(
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) .setSchemaDescriptor( new NotificationChannelServiceMethodDescriptorSupplier(
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) .setSchemaDescriptor( new NotificationChannelServiceMethodDescriptorSupplier(
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) .setSchemaDescriptor( new NotificationChannelServiceMethodDescriptorSupplier(
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) .setSchemaDescriptor( new NotificationChannelServiceMethodDescriptorSupplier(
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.monitoring.v3.NotificationChannel.getDefaultInstance())) .setSchemaDescriptor( new NotificationChannelServiceMethodDescriptorSupplier(