/** * * * <pre> * Output only. The time this scan config was last updated. * </pre> * * <code>.google.protobuf.Timestamp update_time = 5;</code> */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; onChanged(); } else { updateTimeBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Output only. The time this scan config was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 4;</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; onChanged(); } else { createTimeBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Output only. A human-readable description of what the scan configuration * does. * </pre> * * <code>string description = 2;</code> */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; }
/** * * * <pre> * Output only. The time this scan config was last updated. * </pre> * * <code>.google.protobuf.Timestamp update_time = 5;</code> */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Output only. The time this scan config was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 4;</code> */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } onChanged(); } else { createTimeBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Output only. The time this scan config was last updated. * </pre> * * <code>.google.protobuf.Timestamp update_time = 5;</code> */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } return this; } /**
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; }
/** * * * <pre> * Output only. The time this scan config was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 4;</code> */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { createTime_ = null; onChanged(); } else { createTime_ = null; createTimeBuilder_ = null; } 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 setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * Output only. The time this scan config was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 4;</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. The time this scan config was last updated. * </pre> * * <code>.google.protobuf.Timestamp update_time = 5;</code> */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { updateTime_ = null; onChanged(); } else { updateTime_ = null; updateTimeBuilder_ = null; } return this; } /**
/** * * * <pre> * Output only. A human-readable description of what the scan configuration * does. * </pre> * * <code>string description = 2;</code> */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; 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 setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * Output only. The time this scan config was last updated. * </pre> * * <code>.google.protobuf.Timestamp update_time = 5;</code> */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } 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. 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> * Whether the scan is enabled. * </pre> * * <code>bool enabled = 3;</code> */ public Builder setEnabled(boolean value) { enabled_ = value; 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.Timestamp.Builder getCreateTimeBuilder() { onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Whether the scan is enabled. * </pre> * * <code>bool enabled = 3;</code> */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; }
/** * * * <pre> * Output only. The time this scan config was last updated. * </pre> * * <code>.google.protobuf.Timestamp update_time = 5;</code> */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /**