public Builder mergeFrom(com.google.containeranalysis.v1beta1.ScanConfig other) { if (other == com.google.containeranalysis.v1beta1.ScanConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.containeranalysis.v1beta1.ScanConfig buildPartial() { com.google.containeranalysis.v1beta1.ScanConfig result = new com.google.containeranalysis.v1beta1.ScanConfig(this); result.name_ = name_; result.description_ = description_; result.enabled_ = enabled_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { result.createTime_ = createTimeBuilder_.build(); } if (updateTimeBuilder_ == null) { result.updateTime_ = updateTime_; } else { result.updateTime_ = updateTimeBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.containeranalysis.v1beta1.ScanConfig)) { return super.equals(obj); } com.google.containeranalysis.v1beta1.ScanConfig other = (com.google.containeranalysis.v1beta1.ScanConfig) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && getDescription().equals(other.getDescription()); result = result && (getEnabled() == other.getEnabled()); result = result && (hasCreateTime() == other.hasCreateTime()); if (hasCreateTime()) { result = result && getCreateTime().equals(other.getCreateTime()); } result = result && (hasUpdateTime() == other.hasUpdateTime()); if (hasUpdateTime()) { result = result && getUpdateTime().equals(other.getUpdateTime()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * Output only. A human-readable description of what the scan configuration * does. * </pre> * * <code>string description = 2;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The name of the scan configuration in the form of * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
@java.lang.Override public com.google.containeranalysis.v1beta1.ScanConfig getDefaultInstanceForType() { return com.google.containeranalysis.v1beta1.ScanConfig.getDefaultInstance(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (enabled_ != false) { output.writeBool(3, enabled_); } if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } unknownFields.writeTo(output); }
/** * * * <pre> * Output only. The time this scan config was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 4;</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.containeranalysis.v1beta1.UpdateScanConfigRequest)) { return super.equals(obj); } com.google.containeranalysis.v1beta1.UpdateScanConfigRequest other = (com.google.containeranalysis.v1beta1.UpdateScanConfigRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && (hasScanConfig() == other.hasScanConfig()); if (hasScanConfig()) { result = result && getScanConfig().equals(other.getScanConfig()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public com.google.containeranalysis.v1beta1.ScanConfig getScanConfig() { return scanConfig_ == null ? com.google.containeranalysis.v1beta1.ScanConfig.getDefaultInstance() : scanConfig_; } /**
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enabled_); } if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * Output only. A human-readable description of what the scan configuration * does. * </pre> * * <code>string description = 2;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The name of the scan configuration in the form of * `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The time this scan config was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 4;</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.containeranalysis.v1beta1.UpdateScanConfigRequest)) { return super.equals(obj); } com.google.containeranalysis.v1beta1.UpdateScanConfigRequest other = (com.google.containeranalysis.v1beta1.UpdateScanConfigRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && (hasScanConfig() == other.hasScanConfig()); if (hasScanConfig()) { result = result && getScanConfig().equals(other.getScanConfig()); } 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public com.google.containeranalysis.v1beta1.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { return scanConfig_ == null ? com.google.containeranalysis.v1beta1.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (enabled_ != false) { output.writeBool(3, enabled_); } if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } unknownFields.writeTo(output); }
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public Builder mergeScanConfig(com.google.containeranalysis.v1beta1.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = com.google.containeranalysis.v1beta1.ScanConfig.newBuilder(scanConfig_) .mergeFrom(value) .buildPartial(); } else { scanConfig_ = value; } onChanged(); } else { scanConfigBuilder_.mergeFrom(value); } return this; } /**