/** * * * <pre> * The associated metric. A fully-specified metric used to identify the time * series. * </pre> * * <code>.google.api.Metric metric = 1;</code> */ public com.google.api.Metric getMetric() { return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_; } /**
/** * * * <pre> * The associated metric. A fully-specified metric used to identify the time * series. * </pre> * * <code>.google.api.Metric metric = 1;</code> */ public com.google.api.MetricOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { return metricBuilder_.getMessageOrBuilder(); } else { return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_; } } /**
/** * * * <pre> * The associated metric. A fully-specified metric used to identify the time * series. * </pre> * * <code>.google.api.Metric metric = 1;</code> */ public com.google.api.Metric getMetric() { if (metricBuilder_ == null) { return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_; } else { return metricBuilder_.getMessage(); } } /**
/** * <pre> * The associated metric. A fully-specified metric used to identify the time * series. * </pre> * * <code>optional .google.api.Metric metric = 1;</code> */ public com.google.api.Metric getMetric() { return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_; } /**
public com.google.api.Metric getDefaultInstanceForType() { return com.google.api.Metric.getDefaultInstance(); }
/** * <pre> * The associated metric. A fully-specified metric used to identify the time * series. * </pre> * * <code>optional .google.api.Metric metric = 1;</code> */ public com.google.api.Metric getMetric() { if (metricBuilder_ == null) { return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_; } else { return metricBuilder_.getMessage(); } } /**
/** * <pre> * The associated metric. A fully-specified metric used to identify the time * series. * </pre> * * <code>optional .google.api.Metric metric = 1;</code> */ public com.google.api.MetricOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { return metricBuilder_.getMessageOrBuilder(); } else { return metric_ == null ? com.google.api.Metric.getDefaultInstance() : metric_; } } /**
/** * <pre> * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. * For example, `custom.googleapis.com/invoice/paid/amount`. * </pre> * * <code>string type = 3;</code> */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.api.Metric other) { if (other == com.google.api.Metric.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); onChanged(); return this; }