diff --git a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityProto.java b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityProto.java index 27657e78..1f503042 100644 --- a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityProto.java +++ b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityProto.java @@ -43,6 +43,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Details_Reference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Details_Reference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_osconfig_v1_GetVulnerabilityReportRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -72,77 +76,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\022\030google.cloud.osconfig.v1\032\037google" + "/api/field_behavior.proto\032\031google/api/re" + "source.proto\032\037google/protobuf/timestamp." - + "proto\"\353\006\n\023VulnerabilityReport\022\021\n\004name\030\001 " + + "proto\"\303\010\n\023VulnerabilityReport\022\021\n\004name\030\001 " + "\001(\tB\003\340A\003\022Y\n\017vulnerabilities\030\002 \003(\0132;.goog" + "le.cloud.osconfig.v1.VulnerabilityReport" + ".VulnerabilityB\003\340A\003\0224\n\013update_time\030\003 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\032\252\004\n\rVu" + + "2\032.google.protobuf.TimestampB\003\340A\003\032\202\006\n\rVu" + "lnerability\022T\n\007details\030\001 \001(\0132C.google.cl" + "oud.osconfig.v1.VulnerabilityReport.Vuln" - + "erability.Details\022$\n\034installed_inventory" - + "_item_ids\030\002 \003(\t\022$\n\034available_inventory_i" - + "tem_ids\030\003 \003(\t\022/\n\013create_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022/\n\013update_time\030\005 " - + "\001(\0132\032.google.protobuf.Timestamp\032\224\002\n\007Deta" - + "ils\022\013\n\003cve\030\001 \001(\t\022\025\n\rcvss_v2_score\030\002 \001(\002\022" - + "1\n\007cvss_v3\030\003 \001(\0132 .google.cloud.osconfig" - + ".v1.CVSSv3\022\020\n\010severity\030\004 \001(\t\022\023\n\013descript" - + "ion\030\005 \001(\t\022a\n\nreferences\030\006 \003(\0132M.google.c" - + "loud.osconfig.v1.VulnerabilityReport.Vul" - + "nerability.Details.Reference\032(\n\tReferenc" - + "e\022\013\n\003url\030\001 \001(\t\022\016\n\006source\030\002 \001(\t:\202\001\352A\177\n+os" - + "config.googleapis.com/VulnerabilityRepor" - + "t\022Pprojects/{project}/locations/{locatio" - + "n}/instances/{instance}/vulnerabilityRep" - + "ort\"b\n\035GetVulnerabilityReportRequest\022A\n\004" - + "name\030\001 \001(\tB3\340A\002\372A-\n+osconfig.googleapis." - + "com/VulnerabilityReport\"\221\001\n\037ListVulnerab" - + "ilityReportsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002" - + "\372A!\n\037compute.googleapis.com/Instance\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006f" - + "ilter\030\004 \001(\t\"\211\001\n ListVulnerabilityReports" - + "Response\022L\n\025vulnerability_reports\030\001 \003(\0132" - + "-.google.cloud.osconfig.v1.Vulnerability" - + "Report\022\027\n\017next_page_token\030\002 \001(\t\"\265\n\n\006CVSS" - + "v3\022\022\n\nbase_score\030\001 \001(\002\022\034\n\024exploitability" - + "_score\030\002 \001(\002\022\024\n\014impact_score\030\003 \001(\002\022D\n\rat" - + "tack_vector\030\005 \001(\0162-.google.cloud.osconfi" - + "g.v1.CVSSv3.AttackVector\022L\n\021attack_compl" - + "exity\030\006 \001(\01621.google.cloud.osconfig.v1.C" - + "VSSv3.AttackComplexity\022P\n\023privileges_req" - + "uired\030\007 \001(\01623.google.cloud.osconfig.v1.C" - + "VSSv3.PrivilegesRequired\022J\n\020user_interac" - + "tion\030\010 \001(\01620.google.cloud.osconfig.v1.CV" - + "SSv3.UserInteraction\0225\n\005scope\030\t \001(\0162&.go" - + "ogle.cloud.osconfig.v1.CVSSv3.Scope\022G\n\026c" - + "onfidentiality_impact\030\n \001(\0162\'.google.clo" - + "ud.osconfig.v1.CVSSv3.Impact\022A\n\020integrit" - + "y_impact\030\013 \001(\0162\'.google.cloud.osconfig.v" - + "1.CVSSv3.Impact\022D\n\023availability_impact\030\014" - + " \001(\0162\'.google.cloud.osconfig.v1.CVSSv3.I" - + "mpact\"\231\001\n\014AttackVector\022\035\n\031ATTACK_VECTOR_" - + "UNSPECIFIED\020\000\022\031\n\025ATTACK_VECTOR_NETWORK\020\001" - + "\022\032\n\026ATTACK_VECTOR_ADJACENT\020\002\022\027\n\023ATTACK_V" - + "ECTOR_LOCAL\020\003\022\032\n\026ATTACK_VECTOR_PHYSICAL\020" - + "\004\"l\n\020AttackComplexity\022!\n\035ATTACK_COMPLEXI" - + "TY_UNSPECIFIED\020\000\022\031\n\025ATTACK_COMPLEXITY_LO" - + "W\020\001\022\032\n\026ATTACK_COMPLEXITY_HIGH\020\002\"\222\001\n\022Priv" - + "ilegesRequired\022#\n\037PRIVILEGES_REQUIRED_UN" - + "SPECIFIED\020\000\022\034\n\030PRIVILEGES_REQUIRED_NONE\020" - + "\001\022\033\n\027PRIVILEGES_REQUIRED_LOW\020\002\022\034\n\030PRIVIL" - + "EGES_REQUIRED_HIGH\020\003\"m\n\017UserInteraction\022" - + " \n\034USER_INTERACTION_UNSPECIFIED\020\000\022\031\n\025USE" - + "R_INTERACTION_NONE\020\001\022\035\n\031USER_INTERACTION" - + "_REQUIRED\020\002\"F\n\005Scope\022\025\n\021SCOPE_UNSPECIFIE" - + "D\020\000\022\023\n\017SCOPE_UNCHANGED\020\001\022\021\n\rSCOPE_CHANGE" - + "D\020\002\"R\n\006Impact\022\026\n\022IMPACT_UNSPECIFIED\020\000\022\017\n" - + "\013IMPACT_HIGH\020\001\022\016\n\nIMPACT_LOW\020\002\022\017\n\013IMPACT" - + "_NONE\020\003B\312\001\n\034com.google.cloud.osconfig.v1" - + "B\022VulnerabilityProtoP\001Z@google.golang.or" - + "g/genproto/googleapis/cloud/osconfig/v1;" - + "osconfig\252\002\030Google.Cloud.OsConfig.V1\312\002\030Go" - + "ogle\\Cloud\\OsConfig\\V1\352\002\033Google::Cloud::" - + "OsConfig::V1b\006proto3" + + "erability.Details\022(\n\034installed_inventory" + + "_item_ids\030\002 \003(\tB\002\030\001\022(\n\034available_invento" + + "ry_item_ids\030\003 \003(\tB\002\030\001\022/\n\013create_time\030\004 \001" + + "(\0132\032.google.protobuf.Timestamp\022/\n\013update" + + "_time\030\005 \001(\0132\032.google.protobuf.Timestamp\022" + + "O\n\005items\030\006 \003(\0132@.google.cloud.osconfig.v" + + "1.VulnerabilityReport.Vulnerability.Item" + + "\032\224\002\n\007Details\022\013\n\003cve\030\001 \001(\t\022\025\n\rcvss_v2_sco" + + "re\030\002 \001(\002\0221\n\007cvss_v3\030\003 \001(\0132 .google.cloud" + + ".osconfig.v1.CVSSv3\022\020\n\010severity\030\004 \001(\t\022\023\n" + + "\013description\030\005 \001(\t\022a\n\nreferences\030\006 \003(\0132M" + + ".google.cloud.osconfig.v1.VulnerabilityR" + + "eport.Vulnerability.Details.Reference\032(\n" + + "\tReference\022\013\n\003url\030\001 \001(\t\022\016\n\006source\030\002 \001(\t\032" + + "}\n\004Item\022#\n\033installed_inventory_item_id\030\001" + + " \001(\t\022#\n\033available_inventory_item_id\030\002 \001(" + + "\t\022\025\n\rfixed_cpe_uri\030\003 \001(\t\022\024\n\014upstream_fix" + + "\030\004 \001(\t:\202\001\352A\177\n+osconfig.googleapis.com/Vu" + + "lnerabilityReport\022Pprojects/{project}/lo" + + "cations/{location}/instances/{instance}/" + + "vulnerabilityReport\"b\n\035GetVulnerabilityR" + + "eportRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+osco" + + "nfig.googleapis.com/VulnerabilityReport\"" + + "\221\001\n\037ListVulnerabilityReportsRequest\0227\n\006p" + + "arent\030\001 \001(\tB\'\340A\002\372A!\n\037compute.googleapis." + + "com/Instance\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\211\001\n ListVuln" + + "erabilityReportsResponse\022L\n\025vulnerabilit" + + "y_reports\030\001 \003(\0132-.google.cloud.osconfig." + + "v1.VulnerabilityReport\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"\265\n\n\006CVSSv3\022\022\n\nbase_score\030\001 \001(\002\022\034" + + "\n\024exploitability_score\030\002 \001(\002\022\024\n\014impact_s" + + "core\030\003 \001(\002\022D\n\rattack_vector\030\005 \001(\0162-.goog" + + "le.cloud.osconfig.v1.CVSSv3.AttackVector" + + "\022L\n\021attack_complexity\030\006 \001(\01621.google.clo" + + "ud.osconfig.v1.CVSSv3.AttackComplexity\022P" + + "\n\023privileges_required\030\007 \001(\01623.google.clo" + + "ud.osconfig.v1.CVSSv3.PrivilegesRequired" + + "\022J\n\020user_interaction\030\010 \001(\01620.google.clou" + + "d.osconfig.v1.CVSSv3.UserInteraction\0225\n\005" + + "scope\030\t \001(\0162&.google.cloud.osconfig.v1.C" + + "VSSv3.Scope\022G\n\026confidentiality_impact\030\n " + + "\001(\0162\'.google.cloud.osconfig.v1.CVSSv3.Im" + + "pact\022A\n\020integrity_impact\030\013 \001(\0162\'.google." + + "cloud.osconfig.v1.CVSSv3.Impact\022D\n\023avail" + + "ability_impact\030\014 \001(\0162\'.google.cloud.osco" + + "nfig.v1.CVSSv3.Impact\"\231\001\n\014AttackVector\022\035" + + "\n\031ATTACK_VECTOR_UNSPECIFIED\020\000\022\031\n\025ATTACK_" + + "VECTOR_NETWORK\020\001\022\032\n\026ATTACK_VECTOR_ADJACE" + + "NT\020\002\022\027\n\023ATTACK_VECTOR_LOCAL\020\003\022\032\n\026ATTACK_" + + "VECTOR_PHYSICAL\020\004\"l\n\020AttackComplexity\022!\n" + + "\035ATTACK_COMPLEXITY_UNSPECIFIED\020\000\022\031\n\025ATTA" + + "CK_COMPLEXITY_LOW\020\001\022\032\n\026ATTACK_COMPLEXITY" + + "_HIGH\020\002\"\222\001\n\022PrivilegesRequired\022#\n\037PRIVIL" + + "EGES_REQUIRED_UNSPECIFIED\020\000\022\034\n\030PRIVILEGE" + + "S_REQUIRED_NONE\020\001\022\033\n\027PRIVILEGES_REQUIRED" + + "_LOW\020\002\022\034\n\030PRIVILEGES_REQUIRED_HIGH\020\003\"m\n\017" + + "UserInteraction\022 \n\034USER_INTERACTION_UNSP" + + "ECIFIED\020\000\022\031\n\025USER_INTERACTION_NONE\020\001\022\035\n\031" + + "USER_INTERACTION_REQUIRED\020\002\"F\n\005Scope\022\025\n\021" + + "SCOPE_UNSPECIFIED\020\000\022\023\n\017SCOPE_UNCHANGED\020\001" + + "\022\021\n\rSCOPE_CHANGED\020\002\"R\n\006Impact\022\026\n\022IMPACT_" + + "UNSPECIFIED\020\000\022\017\n\013IMPACT_HIGH\020\001\022\016\n\nIMPACT" + + "_LOW\020\002\022\017\n\013IMPACT_NONE\020\003B\312\001\n\034com.google.c" + + "loud.osconfig.v1B\022VulnerabilityProtoP\001Z@" + + "google.golang.org/genproto/googleapis/cl" + + "oud/osconfig/v1;osconfig\252\002\030Google.Cloud." + + "OsConfig.V1\312\002\030Google\\Cloud\\OsConfig\\V1\352\002" + + "\033Google::Cloud::OsConfig::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -173,6 +182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AvailableInventoryItemIds", "CreateTime", "UpdateTime", + "Items", }); internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Details_descriptor = internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_descriptor @@ -194,6 +204,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Url", "Source", }); + internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_descriptor = + internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_osconfig_v1_VulnerabilityReport_Vulnerability_Item_descriptor, + new java.lang.String[] { + "InstalledInventoryItemId", "AvailableInventoryItemId", "FixedCpeUri", "UpstreamFix", + }); internal_static_google_cloud_osconfig_v1_GetVulnerabilityReportRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_osconfig_v1_GetVulnerabilityReportRequest_fieldAccessorTable = diff --git a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityReport.java b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityReport.java index a24c23ce..8e35cc3d 100644 --- a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityReport.java +++ b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/VulnerabilityReport.java @@ -203,10 +203,11 @@ public interface VulnerabilityOrBuilder * 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 java.util.List getInstalledInventoryItemIdsList(); /** * @@ -219,10 +220,11 @@ public interface VulnerabilityOrBuilder * 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 int getInstalledInventoryItemIdsCount(); /** * @@ -235,11 +237,12 @@ public interface VulnerabilityOrBuilder * 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 java.lang.String getInstalledInventoryItemIds(int index); /** * @@ -252,11 +255,12 @@ public interface VulnerabilityOrBuilder * 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 com.google.protobuf.ByteString getInstalledInventoryItemIdsBytes(int index); /** @@ -271,10 +275,11 @@ public interface VulnerabilityOrBuilder * 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 java.util.List getAvailableInventoryItemIdsList(); /** * @@ -288,10 +293,11 @@ public interface VulnerabilityOrBuilder * 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 int getAvailableInventoryItemIdsCount(); /** * @@ -305,11 +311,12 @@ public interface VulnerabilityOrBuilder * 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 java.lang.String getAvailableInventoryItemIds(int index); /** * @@ -323,11 +330,12 @@ public interface VulnerabilityOrBuilder * 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 com.google.protobuf.ByteString getAvailableInventoryItemIdsBytes(int index); /** @@ -399,6 +407,66 @@ public interface VulnerabilityOrBuilder * .google.protobuf.Timestamp update_time = 5; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+     * List of items affected by the vulnerability.
+     * 
+ * + * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6; + * + */ + java.util.List + getItemsList(); + /** + * + * + *
+     * List of items affected by the vulnerability.
+     * 
+ * + * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6; + * + */ + com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item getItems(int index); + /** + * + * + *
+     * List of items affected by the vulnerability.
+     * 
+ * + * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6; + * + */ + int getItemsCount(); + /** + * + * + *
+     * List of items affected by the vulnerability.
+     * 
+ * + * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6; + * + */ + java.util.List< + ? extends com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder> + getItemsOrBuilderList(); + /** + * + * + *
+     * List of items affected by the vulnerability.
+     * 
+ * + * repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6; + * + */ + com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.ItemOrBuilder getItemsOrBuilder( + int index); } /** * @@ -422,6 +490,7 @@ private Vulnerability(com.google.protobuf.GeneratedMessageV3.Builder builder) private Vulnerability() { installedInventoryItemIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; availableInventoryItemIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + items_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -523,6 +592,21 @@ private Vulnerability( break; } + case 50: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + items_ = + new java.util.ArrayList< + com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item>(); + mutable_bitField0_ |= 0x00000004; + } + items_.add( + input.readMessage( + com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item + .parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -543,6 +627,9 @@ private Vulnerability( if (((mutable_bitField0_ & 0x00000002) != 0)) { availableInventoryItemIds_ = availableInventoryItemIds_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -3681,137 +3768,1521 @@ public com.google.protobuf.Parser
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.