getParserForType() {
}
}
- public static final int DETAILS_FIELD_NUMBER = 1;
- private com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details_;
- /**
- *
- *
- *
- * Contains metadata as per the upstream feed of the operating system and
- * NVD.
- *
- *
- * .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
- *
- * @return Whether the details field is set.
- */
- @java.lang.Override
- public boolean hasDetails() {
- return details_ != null;
- }
- /**
- *
- *
- *
- * Contains metadata as per the upstream feed of the operating system and
- * NVD.
- *
- *
- * .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
- *
- * @return The details.
- */
- @java.lang.Override
- public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details getDetails() {
- return details_ == null
- ? com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details
- .getDefaultInstance()
- : details_;
- }
- /**
- *
- *
- *
- * Contains metadata as per the upstream feed of the operating system and
- * NVD.
- *
- *
- * .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
- */
- @java.lang.Override
- public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.DetailsOrBuilder
- getDetailsOrBuilder() {
- return getDetails();
- }
+ public interface ItemOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item)
+ com.google.protobuf.MessageOrBuilder {
- public static final int INSTALLED_INVENTORY_ITEM_IDS_FIELD_NUMBER = 2;
- private com.google.protobuf.LazyStringList installedInventoryItemIds_;
- /**
- *
- *
- *
- * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
- * This field displays the inventory items affected by this vulnerability.
- * If the vulnerability report was not updated after the VM inventory
- * update, these values might not display in VM inventory. For some distros,
- * this field may be empty.
- *
- *
- * repeated string installed_inventory_item_ids = 2;
- *
- * @return A list containing the installedInventoryItemIds.
- */
- public com.google.protobuf.ProtocolStringList getInstalledInventoryItemIdsList() {
- return installedInventoryItemIds_;
- }
- /**
- *
- *
- *
- * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
- * This field displays the inventory items affected by this vulnerability.
- * If the vulnerability report was not updated after the VM inventory
- * update, these values might not display in VM inventory. For some distros,
- * this field may be empty.
- *
- *
- * repeated string installed_inventory_item_ids = 2;
- *
- * @return The count of installedInventoryItemIds.
- */
- public int getInstalledInventoryItemIdsCount() {
- return installedInventoryItemIds_.size();
- }
- /**
- *
- *
- *
- * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
- * This field displays the inventory items affected by this vulnerability.
- * If the vulnerability report was not updated after the VM inventory
- * update, these values might not display in VM inventory. For some distros,
- * this field may be empty.
- *
- *
- * repeated string installed_inventory_item_ids = 2;
- *
- * @param index The index of the element to return.
- * @return The installedInventoryItemIds at the given index.
- */
- public java.lang.String getInstalledInventoryItemIds(int index) {
- return installedInventoryItemIds_.get(index);
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @return The installedInventoryItemId.
+ */
+ java.lang.String getInstalledInventoryItemId();
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @return The bytes for installedInventoryItemId.
+ */
+ com.google.protobuf.ByteString getInstalledInventoryItemIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @return The availableInventoryItemId.
+ */
+ java.lang.String getAvailableInventoryItemId();
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @return The bytes for availableInventoryItemId.
+ */
+ com.google.protobuf.ByteString getAvailableInventoryItemIdBytes();
+
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @return The fixedCpeUri.
+ */
+ java.lang.String getFixedCpeUri();
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @return The bytes for fixedCpeUri.
+ */
+ com.google.protobuf.ByteString getFixedCpeUriBytes();
+
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @return The upstreamFix.
+ */
+ java.lang.String getUpstreamFix();
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @return The bytes for upstreamFix.
+ */
+ com.google.protobuf.ByteString getUpstreamFixBytes();
}
/**
*
*
*
- * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
- * This field displays the inventory items affected by this vulnerability.
- * If the vulnerability report was not updated after the VM inventory
- * update, these values might not display in VM inventory. For some distros,
- * this field may be empty.
+ * OS inventory item that is affected by a vulnerability or fixed as a
+ * result of a vulnerability.
*
*
- * repeated string installed_inventory_item_ids = 2;
- *
- * @param index The index of the value to return.
- * @return The bytes of the installedInventoryItemIds at the given index.
+ * Protobuf type {@code google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item}
*/
- public com.google.protobuf.ByteString getInstalledInventoryItemIdsBytes(int index) {
- return installedInventoryItemIds_.getByteString(index);
- }
+ public static final class Item extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item)
+ ItemOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Item.newBuilder() to construct.
+ private Item(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
- public static final int AVAILABLE_INVENTORY_ITEM_IDS_FIELD_NUMBER = 3;
+ private Item() {
+ installedInventoryItemId_ = "";
+ availableInventoryItemId_ = "";
+ fixedCpeUri_ = "";
+ upstreamFix_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Item();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Item(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ installedInventoryItemId_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ availableInventoryItemId_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ fixedCpeUri_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ upstreamFix_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1.VulnerabilityProto
+ .internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1.VulnerabilityProto
+ .internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.class,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder.class);
+ }
+
+ public static final int INSTALLED_INVENTORY_ITEM_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object installedInventoryItemId_;
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @return The installedInventoryItemId.
+ */
+ @java.lang.Override
+ public java.lang.String getInstalledInventoryItemId() {
+ java.lang.Object ref = installedInventoryItemId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ installedInventoryItemId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @return The bytes for installedInventoryItemId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstalledInventoryItemIdBytes() {
+ java.lang.Object ref = installedInventoryItemId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ installedInventoryItemId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AVAILABLE_INVENTORY_ITEM_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object availableInventoryItemId_;
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @return The availableInventoryItemId.
+ */
+ @java.lang.Override
+ public java.lang.String getAvailableInventoryItemId() {
+ java.lang.Object ref = availableInventoryItemId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ availableInventoryItemId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @return The bytes for availableInventoryItemId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAvailableInventoryItemIdBytes() {
+ java.lang.Object ref = availableInventoryItemId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ availableInventoryItemId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FIXED_CPE_URI_FIELD_NUMBER = 3;
+ private volatile java.lang.Object fixedCpeUri_;
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @return The fixedCpeUri.
+ */
+ @java.lang.Override
+ public java.lang.String getFixedCpeUri() {
+ java.lang.Object ref = fixedCpeUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fixedCpeUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @return The bytes for fixedCpeUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFixedCpeUriBytes() {
+ java.lang.Object ref = fixedCpeUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fixedCpeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int UPSTREAM_FIX_FIELD_NUMBER = 4;
+ private volatile java.lang.Object upstreamFix_;
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @return The upstreamFix.
+ */
+ @java.lang.Override
+ public java.lang.String getUpstreamFix() {
+ java.lang.Object ref = upstreamFix_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ upstreamFix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @return The bytes for upstreamFix.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUpstreamFixBytes() {
+ java.lang.Object ref = upstreamFix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ upstreamFix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(installedInventoryItemId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, installedInventoryItemId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableInventoryItemId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, availableInventoryItemId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fixedCpeUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fixedCpeUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upstreamFix_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upstreamFix_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(installedInventoryItemId_)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(
+ 1, installedInventoryItemId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(availableInventoryItemId_)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(
+ 2, availableInventoryItemId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fixedCpeUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fixedCpeUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upstreamFix_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, upstreamFix_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item other =
+ (com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item) obj;
+
+ if (!getInstalledInventoryItemId().equals(other.getInstalledInventoryItemId()))
+ return false;
+ if (!getAvailableInventoryItemId().equals(other.getAvailableInventoryItemId()))
+ return false;
+ if (!getFixedCpeUri().equals(other.getFixedCpeUri())) return false;
+ if (!getUpstreamFix().equals(other.getUpstreamFix())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INSTALLED_INVENTORY_ITEM_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstalledInventoryItemId().hashCode();
+ hash = (37 * hash) + AVAILABLE_INVENTORY_ITEM_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getAvailableInventoryItemId().hashCode();
+ hash = (37 * hash) + FIXED_CPE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getFixedCpeUri().hashCode();
+ hash = (37 * hash) + UPSTREAM_FIX_FIELD_NUMBER;
+ hash = (53 * hash) + getUpstreamFix().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * OS inventory item that is affected by a vulnerability or fixed as a
+ * result of a vulnerability.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item)
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1.VulnerabilityProto
+ .internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1.VulnerabilityProto
+ .internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.class,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder
+ .class);
+ }
+
+ // Construct using
+ // com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ installedInventoryItemId_ = "";
+
+ availableInventoryItemId_ = "";
+
+ fixedCpeUri_ = "";
+
+ upstreamFix_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.osconfig.v1.VulnerabilityProto
+ .internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ getDefaultInstanceForType() {
+ return com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item build() {
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item buildPartial() {
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item result =
+ new com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item(this);
+ result.installedInventoryItemId_ = installedInventoryItemId_;
+ result.availableInventoryItemId_ = availableInventoryItemId_;
+ result.fixedCpeUri_ = fixedCpeUri_;
+ result.upstreamFix_ = upstreamFix_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item) {
+ return mergeFrom(
+ (com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item other) {
+ if (other
+ == com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ .getDefaultInstance()) return this;
+ if (!other.getInstalledInventoryItemId().isEmpty()) {
+ installedInventoryItemId_ = other.installedInventoryItemId_;
+ onChanged();
+ }
+ if (!other.getAvailableInventoryItemId().isEmpty()) {
+ availableInventoryItemId_ = other.availableInventoryItemId_;
+ onChanged();
+ }
+ if (!other.getFixedCpeUri().isEmpty()) {
+ fixedCpeUri_ = other.fixedCpeUri_;
+ onChanged();
+ }
+ if (!other.getUpstreamFix().isEmpty()) {
+ upstreamFix_ = other.upstreamFix_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object installedInventoryItemId_ = "";
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @return The installedInventoryItemId.
+ */
+ public java.lang.String getInstalledInventoryItemId() {
+ java.lang.Object ref = installedInventoryItemId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ installedInventoryItemId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @return The bytes for installedInventoryItemId.
+ */
+ public com.google.protobuf.ByteString getInstalledInventoryItemIdBytes() {
+ java.lang.Object ref = installedInventoryItemId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ installedInventoryItemId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @param value The installedInventoryItemId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstalledInventoryItemId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ installedInventoryItemId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstalledInventoryItemId() {
+
+ installedInventoryItemId_ = getDefaultInstance().getInstalledInventoryItemId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some
+ * operating systems, this field might be empty.
+ *
+ *
+ * string installed_inventory_item_id = 1;
+ *
+ * @param value The bytes for installedInventoryItemId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstalledInventoryItemIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ installedInventoryItemId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object availableInventoryItemId_ = "";
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @return The availableInventoryItemId.
+ */
+ public java.lang.String getAvailableInventoryItemId() {
+ java.lang.Object ref = availableInventoryItemId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ availableInventoryItemId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @return The bytes for availableInventoryItemId.
+ */
+ public com.google.protobuf.ByteString getAvailableInventoryItemIdBytes() {
+ java.lang.Object ref = availableInventoryItemId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ availableInventoryItemId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @param value The availableInventoryItemId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAvailableInventoryItemId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ availableInventoryItemId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAvailableInventoryItemId() {
+
+ availableInventoryItemId_ = getDefaultInstance().getAvailableInventoryItemId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. If there is no
+ * available fix, the field is empty. The `inventory_item` value specifies
+ * the latest `SoftwarePackage` available to the VM that fixes the
+ * vulnerability.
+ *
+ *
+ * string available_inventory_item_id = 2;
+ *
+ * @param value The bytes for availableInventoryItemId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAvailableInventoryItemIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ availableInventoryItemId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object fixedCpeUri_ = "";
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @return The fixedCpeUri.
+ */
+ public java.lang.String getFixedCpeUri() {
+ java.lang.Object ref = fixedCpeUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fixedCpeUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @return The bytes for fixedCpeUri.
+ */
+ public com.google.protobuf.ByteString getFixedCpeUriBytes() {
+ java.lang.Object ref = fixedCpeUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fixedCpeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @param value The fixedCpeUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFixedCpeUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fixedCpeUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFixedCpeUri() {
+
+ fixedCpeUri_ = getDefaultInstance().getFixedCpeUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ * that contains a fix for this vulnerability.
+ *
+ *
+ * string fixed_cpe_uri = 3;
+ *
+ * @param value The bytes for fixedCpeUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFixedCpeUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fixedCpeUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object upstreamFix_ = "";
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @return The upstreamFix.
+ */
+ public java.lang.String getUpstreamFix() {
+ java.lang.Object ref = upstreamFix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ upstreamFix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @return The bytes for upstreamFix.
+ */
+ public com.google.protobuf.ByteString getUpstreamFixBytes() {
+ java.lang.Object ref = upstreamFix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ upstreamFix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @param value The upstreamFix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUpstreamFix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ upstreamFix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUpstreamFix() {
+
+ upstreamFix_ = getDefaultInstance().getUpstreamFix();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The upstream OS patch, packages or KB that fixes the vulnerability.
+ *
+ *
+ * string upstream_fix = 4;
+ *
+ * @param value The bytes for upstreamFix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUpstreamFixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ upstreamFix_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item)
+ private static final com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item();
+ }
+
+ public static com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser- PARSER =
+ new com.google.protobuf.AbstractParser
- () {
+ @java.lang.Override
+ public Item parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Item(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser
- parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser
- getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public static final int DETAILS_FIELD_NUMBER = 1;
+ private com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details_;
+ /**
+ *
+ *
+ *
+ * Contains metadata as per the upstream feed of the operating system and
+ * NVD.
+ *
+ *
+ * .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
+ *
+ * @return Whether the details field is set.
+ */
+ @java.lang.Override
+ public boolean hasDetails() {
+ return details_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Contains metadata as per the upstream feed of the operating system and
+ * NVD.
+ *
+ *
+ * .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
+ *
+ * @return The details.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details getDetails() {
+ return details_ == null
+ ? com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details
+ .getDefaultInstance()
+ : details_;
+ }
+ /**
+ *
+ *
+ *
+ * Contains metadata as per the upstream feed of the operating system and
+ * NVD.
+ *
+ *
+ * .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.DetailsOrBuilder
+ getDetailsOrBuilder() {
+ return getDetails();
+ }
+
+ public static final int INSTALLED_INVENTORY_ITEM_IDS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList installedInventoryItemIds_;
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some distros,
+ * this field may be empty.
+ *
+ *
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
+ *
+ * @return A list containing the installedInventoryItemIds.
+ */
+ @java.lang.Deprecated
+ public com.google.protobuf.ProtocolStringList getInstalledInventoryItemIdsList() {
+ return installedInventoryItemIds_;
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some distros,
+ * this field may be empty.
+ *
+ *
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
+ *
+ * @return The count of installedInventoryItemIds.
+ */
+ @java.lang.Deprecated
+ public int getInstalledInventoryItemIdsCount() {
+ return installedInventoryItemIds_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some distros,
+ * this field may be empty.
+ *
+ *
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
+ *
+ * @param index The index of the element to return.
+ * @return The installedInventoryItemIds at the given index.
+ */
+ @java.lang.Deprecated
+ public java.lang.String getInstalledInventoryItemIds(int index) {
+ return installedInventoryItemIds_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ * This field displays the inventory items affected by this vulnerability.
+ * If the vulnerability report was not updated after the VM inventory
+ * update, these values might not display in VM inventory. For some distros,
+ * this field may be empty.
+ *
+ *
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the installedInventoryItemIds at the given index.
+ */
+ @java.lang.Deprecated
+ public com.google.protobuf.ByteString getInstalledInventoryItemIdsBytes(int index) {
+ return installedInventoryItemIds_.getByteString(index);
+ }
+
+ public static final int AVAILABLE_INVENTORY_ITEM_IDS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList availableInventoryItemIds_;
/**
*
@@ -3825,10 +5296,11 @@ public com.google.protobuf.ByteString getInstalledInventoryItemIdsBytes(int inde
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @return A list containing the availableInventoryItemIds.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ProtocolStringList getAvailableInventoryItemIdsList() {
return availableInventoryItemIds_;
}
@@ -3844,10 +5316,11 @@ public com.google.protobuf.ProtocolStringList getAvailableInventoryItemIdsList()
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @return The count of availableInventoryItemIds.
*/
+ @java.lang.Deprecated
public int getAvailableInventoryItemIdsCount() {
return availableInventoryItemIds_.size();
}
@@ -3863,11 +5336,12 @@ public int getAvailableInventoryItemIdsCount() {
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @param index The index of the element to return.
* @return The availableInventoryItemIds at the given index.
*/
+ @java.lang.Deprecated
public java.lang.String getAvailableInventoryItemIds(int index) {
return availableInventoryItemIds_.get(index);
}
@@ -3883,11 +5357,12 @@ public java.lang.String getAvailableInventoryItemIds(int index) {
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @param index The index of the value to return.
* @return The bytes of the availableInventoryItemIds at the given index.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getAvailableInventoryItemIdsBytes(int index) {
return availableInventoryItemIds_.getByteString(index);
}
@@ -3967,21 +5442,99 @@ public boolean hasUpdateTime() {
* @return The updateTime.
*/
@java.lang.Override
- public com.google.protobuf.Timestamp getUpdateTime() {
- return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp for when the vulnerability was last modified.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 5;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return getUpdateTime();
+ }
+
+ public static final int ITEMS_FIELD_NUMBER = 6;
+ private java.util.List
+ items_;
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getItemsList() {
+ return items_;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder>
+ getItemsOrBuilderList() {
+ return items_;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ @java.lang.Override
+ public int getItemsCount() {
+ return items_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item getItems(int index) {
+ return items_.get(index);
}
/**
*
*
*
- * The timestamp for when the vulnerability was last modified.
+ * List of items affected by the vulnerability.
*
*
- * .google.protobuf.Timestamp update_time = 5;
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
*/
@java.lang.Override
- public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
- return getUpdateTime();
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder
+ getItemsOrBuilder(int index) {
+ return items_.get(index);
}
private byte memoizedIsInitialized = -1;
@@ -4015,6 +5568,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (updateTime_ != null) {
output.writeMessage(5, getUpdateTime());
}
+ for (int i = 0; i < items_.size(); i++) {
+ output.writeMessage(6, items_.get(i));
+ }
unknownFields.writeTo(output);
}
@@ -4049,6 +5605,9 @@ public int getSerializedSize() {
if (updateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime());
}
+ for (int i = 0; i < items_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, items_.get(i));
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -4081,6 +5640,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
+ if (!getItemsList().equals(other.getItemsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -4112,6 +5672,10 @@ public int hashCode() {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
+ if (getItemsCount() > 0) {
+ hash = (37 * hash) + ITEMS_FIELD_NUMBER;
+ hash = (53 * hash) + getItemsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -4254,7 +5818,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getItemsFieldBuilder();
+ }
}
@java.lang.Override
@@ -4282,6 +5848,12 @@ public Builder clear() {
updateTime_ = null;
updateTimeBuilder_ = null;
}
+ if (itemsBuilder_ == null) {
+ items_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ itemsBuilder_.clear();
+ }
return this;
}
@@ -4336,6 +5908,15 @@ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability buildParti
} else {
result.updateTime_ = updateTimeBuilder_.build();
}
+ if (itemsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ items_ = java.util.Collections.unmodifiableList(items_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.items_ = items_;
+ } else {
+ result.items_ = itemsBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -4419,6 +6000,33 @@ public Builder mergeFrom(
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
+ if (itemsBuilder_ == null) {
+ if (!other.items_.isEmpty()) {
+ if (items_.isEmpty()) {
+ items_ = other.items_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureItemsIsMutable();
+ items_.addAll(other.items_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.items_.isEmpty()) {
+ if (itemsBuilder_.isEmpty()) {
+ itemsBuilder_.dispose();
+ itemsBuilder_ = null;
+ items_ = other.items_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ itemsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getItemsFieldBuilder()
+ : null;
+ } else {
+ itemsBuilder_.addAllMessages(other.items_);
+ }
+ }
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -4685,10 +6293,11 @@ private void ensureInstalledInventoryItemIdsIsMutable() {
* this field may be empty.
*
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @return A list containing the installedInventoryItemIds.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ProtocolStringList getInstalledInventoryItemIdsList() {
return installedInventoryItemIds_.getUnmodifiableView();
}
@@ -4703,10 +6312,11 @@ public com.google.protobuf.ProtocolStringList getInstalledInventoryItemIdsList()
* this field may be empty.
*
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @return The count of installedInventoryItemIds.
*/
+ @java.lang.Deprecated
public int getInstalledInventoryItemIdsCount() {
return installedInventoryItemIds_.size();
}
@@ -4721,11 +6331,12 @@ public int getInstalledInventoryItemIdsCount() {
* this field may be empty.
*
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @param index The index of the element to return.
* @return The installedInventoryItemIds at the given index.
*/
+ @java.lang.Deprecated
public java.lang.String getInstalledInventoryItemIds(int index) {
return installedInventoryItemIds_.get(index);
}
@@ -4740,11 +6351,12 @@ public java.lang.String getInstalledInventoryItemIds(int index) {
* this field may be empty.
*
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @param index The index of the value to return.
* @return The bytes of the installedInventoryItemIds at the given index.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getInstalledInventoryItemIdsBytes(int index) {
return installedInventoryItemIds_.getByteString(index);
}
@@ -4759,12 +6371,13 @@ public com.google.protobuf.ByteString getInstalledInventoryItemIdsBytes(int inde
* this field may be empty.
*
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @param index The index to set the value at.
* @param value The installedInventoryItemIds to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setInstalledInventoryItemIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -4785,11 +6398,12 @@ public Builder setInstalledInventoryItemIds(int index, java.lang.String value) {
* this field may be empty.
*
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @param value The installedInventoryItemIds to add.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder addInstalledInventoryItemIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -4810,11 +6424,12 @@ public Builder addInstalledInventoryItemIds(java.lang.String value) {
* this field may be empty.
*
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @param values The installedInventoryItemIds to add.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder addAllInstalledInventoryItemIds(java.lang.Iterable values) {
ensureInstalledInventoryItemIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, installedInventoryItemIds_);
@@ -4832,10 +6447,11 @@ public Builder addAllInstalledInventoryItemIds(java.lang.Iterable
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder clearInstalledInventoryItemIds() {
installedInventoryItemIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
@@ -4853,11 +6469,12 @@ public Builder clearInstalledInventoryItemIds() {
* this field may be empty.
*
*
- * repeated string installed_inventory_item_ids = 2;
+ * repeated string installed_inventory_item_ids = 2 [deprecated = true];
*
* @param value The bytes of the installedInventoryItemIds to add.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder addInstalledInventoryItemIdsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
@@ -4891,10 +6508,11 @@ private void ensureAvailableInventoryItemIdsIsMutable() {
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @return A list containing the availableInventoryItemIds.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ProtocolStringList getAvailableInventoryItemIdsList() {
return availableInventoryItemIds_.getUnmodifiableView();
}
@@ -4910,10 +6528,11 @@ public com.google.protobuf.ProtocolStringList getAvailableInventoryItemIdsList()
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @return The count of availableInventoryItemIds.
*/
+ @java.lang.Deprecated
public int getAvailableInventoryItemIdsCount() {
return availableInventoryItemIds_.size();
}
@@ -4929,11 +6548,12 @@ public int getAvailableInventoryItemIdsCount() {
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @param index The index of the element to return.
* @return The availableInventoryItemIds at the given index.
*/
+ @java.lang.Deprecated
public java.lang.String getAvailableInventoryItemIds(int index) {
return availableInventoryItemIds_.get(index);
}
@@ -4949,11 +6569,12 @@ public java.lang.String getAvailableInventoryItemIds(int index) {
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @param index The index of the value to return.
* @return The bytes of the availableInventoryItemIds at the given index.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getAvailableInventoryItemIdsBytes(int index) {
return availableInventoryItemIds_.getByteString(index);
}
@@ -4969,12 +6590,13 @@ public com.google.protobuf.ByteString getAvailableInventoryItemIdsBytes(int inde
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @param index The index to set the value at.
* @param value The availableInventoryItemIds to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setAvailableInventoryItemIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -4996,11 +6618,12 @@ public Builder setAvailableInventoryItemIds(int index, java.lang.String value) {
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @param value The availableInventoryItemIds to add.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder addAvailableInventoryItemIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -5022,11 +6645,12 @@ public Builder addAvailableInventoryItemIds(java.lang.String value) {
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @param values The availableInventoryItemIds to add.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder addAllAvailableInventoryItemIds(java.lang.Iterable values) {
ensureAvailableInventoryItemIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availableInventoryItemIds_);
@@ -5045,10 +6669,11 @@ public Builder addAllAvailableInventoryItemIds(java.lang.Iterable
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder clearAvailableInventoryItemIds() {
availableInventoryItemIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
@@ -5067,11 +6692,12 @@ public Builder clearAvailableInventoryItemIds() {
* vulnerability.
*
*
- * repeated string available_inventory_item_ids = 3;
+ * repeated string available_inventory_item_ids = 3 [deprecated = true];
*
* @param value The bytes of the availableInventoryItemIds to add.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder addAvailableInventoryItemIdsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
@@ -5453,6 +7079,400 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTimeBuilder_;
}
+ private java.util.List
+ items_ = java.util.Collections.emptyList();
+
+ private void ensureItemsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ items_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item>(items_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder>
+ itemsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public java.util.List
+ getItemsList() {
+ if (itemsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(items_);
+ } else {
+ return itemsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public int getItemsCount() {
+ if (itemsBuilder_ == null) {
+ return items_.size();
+ } else {
+ return itemsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item getItems(
+ int index) {
+ if (itemsBuilder_ == null) {
+ return items_.get(index);
+ } else {
+ return itemsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder setItems(
+ int index, com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item value) {
+ if (itemsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemsIsMutable();
+ items_.set(index, value);
+ onChanged();
+ } else {
+ itemsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder setItems(
+ int index,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder
+ builderForValue) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ items_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder addItems(
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item value) {
+ if (itemsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemsIsMutable();
+ items_.add(value);
+ onChanged();
+ } else {
+ itemsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder addItems(
+ int index, com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item value) {
+ if (itemsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureItemsIsMutable();
+ items_.add(index, value);
+ onChanged();
+ } else {
+ itemsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder addItems(
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder
+ builderForValue) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ items_.add(builderForValue.build());
+ onChanged();
+ } else {
+ itemsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder addItems(
+ int index,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder
+ builderForValue) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ items_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ itemsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder addAllItems(
+ java.lang.Iterable<
+ ? extends com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item>
+ values) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
+ onChanged();
+ } else {
+ itemsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder clearItems() {
+ if (itemsBuilder_ == null) {
+ items_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ itemsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public Builder removeItems(int index) {
+ if (itemsBuilder_ == null) {
+ ensureItemsIsMutable();
+ items_.remove(index);
+ onChanged();
+ } else {
+ itemsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder
+ getItemsBuilder(int index) {
+ return getItemsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder
+ getItemsOrBuilder(int index) {
+ if (itemsBuilder_ == null) {
+ return items_.get(index);
+ } else {
+ return itemsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder>
+ getItemsOrBuilderList() {
+ if (itemsBuilder_ != null) {
+ return itemsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(items_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder
+ addItemsBuilder() {
+ return getItemsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder
+ addItemsBuilder(int index) {
+ return getItemsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of items affected by the vulnerability.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder>
+ getItemsBuilderList() {
+ return getItemsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder>
+ getItemsFieldBuilder() {
+ if (itemsBuilder_ == null) {
+ itemsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder,
+ com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder>(
+ items_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ items_ = null;
+ }
+ return itemsBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/vulnerability.proto b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/vulnerability.proto
index af86fbe0..b8ca5175 100644
--- a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/vulnerability.proto
+++ b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/vulnerability.proto
@@ -75,6 +75,32 @@ message VulnerabilityReport {
repeated Reference references = 6;
}
+ // OS inventory item that is affected by a vulnerability or fixed as a
+ // result of a vulnerability.
+ message Item {
+ // Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
+ // This field displays the inventory items affected by this vulnerability.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. For some
+ // operating systems, this field might be empty.
+ string installed_inventory_item_id = 1;
+
+ // Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
+ // If the vulnerability report was not updated after the VM inventory
+ // update, these values might not display in VM inventory. If there is no
+ // available fix, the field is empty. The `inventory_item` value specifies
+ // the latest `SoftwarePackage` available to the VM that fixes the
+ // vulnerability.
+ string available_inventory_item_id = 2;
+
+ // The recommended [CPE URI](https://cpe.mitre.org/specification/) update
+ // that contains a fix for this vulnerability.
+ string fixed_cpe_uri = 3;
+
+ // The upstream OS patch, packages or KB that fixes the vulnerability.
+ string upstream_fix = 4;
+ }
+
// Contains metadata as per the upstream feed of the operating system and
// NVD.
Details details = 1;
@@ -84,7 +110,7 @@ message VulnerabilityReport {
// If the vulnerability report was not updated after the VM inventory
// update, these values might not display in VM inventory. For some distros,
// this field may be empty.
- repeated string installed_inventory_item_ids = 2;
+ repeated string installed_inventory_item_ids = 2 [deprecated = true];
// Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
// If the vulnerability report was not updated after the VM inventory
@@ -92,13 +118,16 @@ message VulnerabilityReport {
// available fix, the field is empty. The `inventory_item` value specifies
// the latest `SoftwarePackage` available to the VM that fixes the
// vulnerability.
- repeated string available_inventory_item_ids = 3;
+ repeated string available_inventory_item_ids = 3 [deprecated = true];
// The timestamp for when the vulnerability was first detected.
google.protobuf.Timestamp create_time = 4;
// The timestamp for when the vulnerability was last modified.
google.protobuf.Timestamp update_time = 5;
+
+ // List of items affected by the vulnerability.
+ repeated Item items = 6;
}
// Output only. The `vulnerabilityReport` API resource name.