/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public Builder setScanConfig(com.google.containeranalysis.v1beta1.ScanConfig value) { if (scanConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scanConfig_ = value; onChanged(); } else { scanConfigBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * 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 setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * 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 setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <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; } /**
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public Builder setScanConfig(com.google.containeranalysis.v1beta1.ScanConfig value) { if (scanConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scanConfig_ = value; onChanged(); } else { scanConfigBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public Builder setScanConfig( com.google.containeranalysis.v1beta1.ScanConfig.Builder builderForValue) { if (scanConfigBuilder_ == null) { scanConfig_ = builderForValue.build(); onChanged(); } else { scanConfigBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { scanConfig_ = null; onChanged(); } else { scanConfig_ = null; scanConfigBuilder_ = null; } return this; } /**
/** * * * <pre> * 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 setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * 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> * 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 setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest other) { if (other == com.google.containeranalysis.v1beta1.UpdateScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public com.google.containeranalysis.v1beta1.ScanConfig.Builder getScanConfigBuilder() { onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /**
/** * * * <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; } /**
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public Builder setScanConfig( com.google.containeranalysis.v1beta1.ScanConfig.Builder builderForValue) { if (scanConfigBuilder_ == null) { scanConfig_ = builderForValue.build(); onChanged(); } else { scanConfigBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { scanConfig_ = null; onChanged(); } else { scanConfig_ = null; scanConfigBuilder_ = null; } return this; } /**
/** * * * <pre> * 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; } /**
public Builder mergeFrom(com.google.containeranalysis.v1beta1.UpdateScanConfigRequest other) { if (other == com.google.containeranalysis.v1beta1.UpdateScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The updated scan configuration. * </pre> * * <code>.google.devtools.containeranalysis.v1beta1.ScanConfig scan_config = 2;</code> */ public com.google.containeranalysis.v1beta1.ScanConfig.Builder getScanConfigBuilder() { onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /**