/** * * * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>.google.monitoring.v3.Group group = 2;</code> */ public Builder setGroup(com.google.monitoring.v3.Group value) { if (groupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } group_ = value; onChanged(); } else { groupBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>.google.monitoring.v3.Group group = 2;</code> */ public com.google.monitoring.v3.Group.Builder getGroupBuilder() { onChanged(); return getGroupFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>.google.monitoring.v3.Group group = 2;</code> */ public Builder setGroup(com.google.monitoring.v3.Group.Builder builderForValue) { if (groupBuilder_ == null) { group_ = builderForValue.build(); onChanged(); } else { groupBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>optional .google.monitoring.v3.Group group = 2;</code> */ public Builder mergeGroup(com.google.monitoring.v3.Group value) { if (groupBuilder_ == null) { if (group_ != null) { group_ = com.google.monitoring.v3.Group.newBuilder(group_).mergeFrom(value).buildPartial(); } else { group_ = value; } onChanged(); } else { groupBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>optional .google.monitoring.v3.Group group = 2;</code> */ public Builder setGroup(com.google.monitoring.v3.Group value) { if (groupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } group_ = value; onChanged(); } else { groupBuilder_.setMessage(value); } return this; } /**
/** * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>optional .google.monitoring.v3.Group group = 2;</code> */ public Builder setGroup( com.google.monitoring.v3.Group.Builder builderForValue) { if (groupBuilder_ == null) { group_ = builderForValue.build(); onChanged(); } else { groupBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>optional .google.monitoring.v3.Group group = 2;</code> */ public Builder clearGroup() { if (groupBuilder_ == null) { group_ = null; onChanged(); } else { group_ = null; groupBuilder_ = null; } return this; } /**
/** * <pre> * If true, validate this request but do not update the existing group. * </pre> * * <code>optional bool validate_only = 3;</code> */ public Builder clearValidateOnly() { validateOnly_ = false; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>optional .google.monitoring.v3.Group group = 2;</code> */ public com.google.monitoring.v3.Group.Builder getGroupBuilder() { onChanged(); return getGroupFieldBuilder().getBuilder(); } /**
/** * <pre> * If true, validate this request but do not update the existing group. * </pre> * * <code>optional bool validate_only = 3;</code> */ public Builder setValidateOnly(boolean value) { validateOnly_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.monitoring.v3.UpdateGroupRequest other) { if (other == com.google.monitoring.v3.UpdateGroupRequest.getDefaultInstance()) return this; if (other.hasGroup()) { mergeGroup(other.getGroup()); } if (other.getValidateOnly() != false) { setValidateOnly(other.getValidateOnly()); } onChanged(); return this; }
/** * * * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>.google.monitoring.v3.Group group = 2;</code> */ public Builder mergeGroup(com.google.monitoring.v3.Group value) { if (groupBuilder_ == null) { if (group_ != null) { group_ = com.google.monitoring.v3.Group.newBuilder(group_).mergeFrom(value).buildPartial(); } else { group_ = value; } onChanged(); } else { groupBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The new definition of the group. All fields of the existing group, * excepting `name`, are replaced with the corresponding fields of this group. * </pre> * * <code>.google.monitoring.v3.Group group = 2;</code> */ public Builder clearGroup() { if (groupBuilder_ == null) { group_ = null; onChanged(); } else { group_ = null; groupBuilder_ = null; } return this; } /**
/** * * * <pre> * If true, validate this request but do not update the existing group. * </pre> * * <code>bool validate_only = 3;</code> */ public Builder setValidateOnly(boolean value) { validateOnly_ = value; onChanged(); return this; } /**
/** * * * <pre> * If true, validate this request but do not update the existing group. * </pre> * * <code>bool validate_only = 3;</code> */ public Builder clearValidateOnly() { validateOnly_ = false; onChanged(); return this; }
public Builder mergeFrom(com.google.monitoring.v3.UpdateGroupRequest other) { if (other == com.google.monitoring.v3.UpdateGroupRequest.getDefaultInstance()) return this; if (other.hasGroup()) { mergeGroup(other.getGroup()); } if (other.getValidateOnly() != false) { setValidateOnly(other.getValidateOnly()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }