public static MonitoredResource fromPb(com.google.api.MonitoredResource descriptorPb) { return new Builder(descriptorPb.getType()).labels(descriptorPb.getLabels()).build(); } }
public static MonitoredResource fromPb(com.google.api.MonitoredResource descriptorPb) { return new Builder(descriptorPb.getType()).setLabels(descriptorPb.getLabelsMap()).build(); } }
/** Returns a builder for this {@code MonitoredResource} object. */ public Builder toBuilder() { return new Builder(this); }
/** * Returns a builder for {@code MonitoredResource} objects given the resource's type. */ public static Builder builder(String type) { return new Builder(type); }
/** Returns a builder for {@code MonitoredResource} objects given the resource's type. */ public static Builder newBuilder(String type) { return new Builder(type); }
/** * Returns a builder for this {@code MonitoredResource} object. */ public Builder toBuilder() { return new Builder(this); }
public static MonitoredResource fromPb(com.google.api.MonitoredResource descriptorPb) { return new Builder(descriptorPb.getType()).setLabels(descriptorPb.getLabelsMap()).build(); } }
/** Returns a builder for this {@code MonitoredResource} object. */ public Builder toBuilder() { return new Builder(this); }
/** Returns a builder for {@code MonitoredResource} objects given the resource's type. */ public static Builder newBuilder(String type) { return new Builder(type); }