@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter other = (com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter) obj; boolean result = true; result = result && getService().equals(other.getService()); result = result && getVersion().equals(other.getVersion()); result = result && getResourceType().equals(other.getResourceType()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResourceType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * [Optional] The exact value to match against * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). * </pre> * * <code>string service = 2;</code> */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /**
public Builder mergeFrom( com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter .getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter other = (com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter) obj; boolean result = true; result = result && getService().equals(other.getService()); result = result && getVersion().equals(other.getVersion()); result = result && getResourceType().equals(other.getResourceType()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResourceType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * [Optional] The exact value to match against * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). * </pre> * * <code>string service = 2;</code> */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /**
public Builder mergeFrom( com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter .getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }