/** * * * <pre> * The metric descriptor on which to execute the request. The format is * `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. * An example value of `{metric_id}` is * `"compute.googleapis.com/instance/disk/read_bytes_count"`. * </pre> * * <code>string name = 3;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * The metric descriptor on which to execute the request. The format is * `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. * An example value of `{metric_id}` is * `"compute.googleapis.com/instance/disk/read_bytes_count"`. * </pre> * * <code>string name = 3;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.monitoring.v3.GetMetricDescriptorRequest other) { if (other == com.google.monitoring.v3.GetMetricDescriptorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * The metric descriptor on which to execute the request. The format is * `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. * An example value of `{metric_id}` is * `"compute.googleapis.com/instance/disk/read_bytes_count"`. * </pre> * * <code>optional string name = 3;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * The metric descriptor on which to execute the request. The format is * `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. * An example value of `{metric_id}` is * `"compute.googleapis.com/instance/disk/read_bytes_count"`. * </pre> * * <code>optional string name = 3;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * <pre> * The metric descriptor on which to execute the request. The format is * `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. * An example value of `{metric_id}` is * `"compute.googleapis.com/instance/disk/read_bytes_count"`. * </pre> * * <code>optional string name = 3;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * The metric descriptor on which to execute the request. The format is * `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. * An example value of `{metric_id}` is * `"compute.googleapis.com/instance/disk/read_bytes_count"`. * </pre> * * <code>string name = 3;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**