Refine search
public com.google.api.MonitoredResource toPb() { return com.google.api.MonitoredResource.newBuilder().setType(type).putAllLabels(labels).build(); }
if (monitoredResourceBuilder_ == null) { if (resourceCase_ == 3 && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { resource_ = com.google.api.MonitoredResource.newBuilder( (com.google.api.MonitoredResource) resource_) .mergeFrom(value) .buildPartial(); } else { resource_ = value;
subBuilder = resource_.toBuilder(); input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resource_); resource_ = subBuilder.buildPartial(); com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); break;
public static MonitoredResource fromPb(com.google.api.MonitoredResource descriptorPb) { return new Builder(descriptorPb.getType()).setLabels(descriptorPb.getLabelsMap()).build(); } }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOG_NAME_FIELD_NUMBER; hash = (53 * hash) + getLogName().hashCode(); if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (37 * hash) + PARTIAL_SUCCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartialSuccess()); hash = (37 * hash) + DRY_RUN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.logging.v2.WriteLogEntriesRequest)) { return super.equals(obj); } com.google.logging.v2.WriteLogEntriesRequest other = (com.google.logging.v2.WriteLogEntriesRequest) obj; boolean result = true; result = result && getLogName().equals(other.getLogName()); result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource().equals(other.getResource()); } result = result && internalGetLabels().equals(other.internalGetLabels()); result = result && getEntriesList().equals(other.getEntriesList()); result = result && (getPartialSuccess() == other.getPartialSuccess()); result = result && (getDryRun() == other.getDryRun()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * The associated monitored resource. Custom metrics can use only certain * monitored resource types in their time series data. * </pre> * * <code>.google.api.MonitoredResource resource = 2;</code> */ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /**
builder.setLogName(ProjectLogName.parse(entryPb.getLogName()).getLog()); if (!entryPb.getResource().equals(com.google.api.MonitoredResource.getDefaultInstance())) { builder.setResource(MonitoredResource.fromPb(entryPb.getResource()));
subBuilder = resource_.toBuilder(); input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resource_); resource_ = subBuilder.buildPartial();
/** * <pre> * Required. The monitored resource type. This field must match * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For * example, the type of a Cloud SQL database is `"cloudsql_database"`. * </pre> * * <code>string type = 1;</code> */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.TimeSeries)) { return super.equals(obj); } com.google.monitoring.v3.TimeSeries other = (com.google.monitoring.v3.TimeSeries) obj; boolean result = true; result = result && (hasMetric() == other.hasMetric()); if (hasMetric()) { result = result && getMetric().equals(other.getMetric()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource().equals(other.getResource()); } result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && metricKind_ == other.metricKind_; result = result && valueType_ == other.valueType_; result = result && getPointsList().equals(other.getPointsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.MonitoredResource prototype) {
hash = (53 * hash) + getResource().hashCode();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry)); break;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.MonitoredResource)) { return super.equals(obj); } com.google.api.MonitoredResource other = (com.google.api.MonitoredResource) obj; boolean result = true; result = result && getType() .equals(other.getType()); result = result && internalGetLabels().equals( other.internalGetLabels()); return result; }
if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); hash = (53 * hash) + getHttpRequest().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode();
result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource().equals(other.getResource()); result = result && getHttpRequest().equals(other.getHttpRequest()); result = result && internalGetLabels().equals(other.internalGetLabels()); result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) {
/** * * * <pre> * Required. The primary monitored resource associated with this log entry. * Example: a log entry that reports a database error would be * associated with the monitored resource designating the particular * database that reported the error. * </pre> * * <code>.google.api.MonitoredResource resource = 8;</code> */ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /**