diff --git a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventories.java b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventories.java index 772ce4f8..ede15fcf 100644 --- a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventories.java +++ b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventories.java @@ -63,6 +63,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_osconfig_v1_Inventory_WindowsQuickFixEngineeringPackage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_osconfig_v1_Inventory_WindowsQuickFixEngineeringPackage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_osconfig_v1_Inventory_ItemsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -78,77 +82,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n(google/cloud/osconfig/v1/inventory.pro" + "to\022\030google.cloud.osconfig.v1\032\037google/pro" - + "tobuf/timestamp.proto\"\263\022\n\tInventory\022;\n\007o" - + "s_info\030\001 \001(\0132*.google.cloud.osconfig.v1." - + "Inventory.OsInfo\022=\n\005items\030\002 \003(\0132..google" - + ".cloud.osconfig.v1.Inventory.ItemsEntry\032" - + "\270\001\n\006OsInfo\022\020\n\010hostname\030\t \001(\t\022\021\n\tlong_nam" - + "e\030\002 \001(\t\022\022\n\nshort_name\030\003 \001(\t\022\017\n\007version\030\004" - + " \001(\t\022\024\n\014architecture\030\005 \001(\t\022\026\n\016kernel_ver" - + "sion\030\006 \001(\t\022\026\n\016kernel_release\030\007 \001(\t\022\036\n\026os" - + "config_agent_version\030\010 \001(\t\032\267\004\n\004Item\022\n\n\002i" - + "d\030\001 \001(\t\022H\n\013origin_type\030\002 \001(\01623.google.cl" - + "oud.osconfig.v1.Inventory.Item.OriginTyp" - + "e\022/\n\013create_time\030\010 \001(\0132\032.google.protobuf" - + ".Timestamp\022/\n\013update_time\030\t \001(\0132\032.google" - + ".protobuf.Timestamp\022;\n\004type\030\005 \001(\0162-.goog" - + "le.cloud.osconfig.v1.Inventory.Item.Type" - + "\022P\n\021installed_package\030\006 \001(\01323.google.clo" - + "ud.osconfig.v1.Inventory.SoftwarePackage" - + "H\000\022P\n\021available_package\030\007 \001(\01323.google.c" - + "loud.osconfig.v1.Inventory.SoftwarePacka" - + "geH\000\"?\n\nOriginType\022\033\n\027ORIGIN_TYPE_UNSPEC" - + "IFIED\020\000\022\024\n\020INVENTORY_REPORT\020\001\"J\n\004Type\022\024\n" - + "\020TYPE_UNSPECIFIED\020\000\022\025\n\021INSTALLED_PACKAGE" - + "\020\001\022\025\n\021AVAILABLE_PACKAGE\020\002B\t\n\007details\032\233\005\n" - + "\017SoftwarePackage\022K\n\013yum_package\030\001 \001(\01324." - + "google.cloud.osconfig.v1.Inventory.Versi" - + "onedPackageH\000\022K\n\013apt_package\030\002 \001(\01324.goo" - + "gle.cloud.osconfig.v1.Inventory.Versione" - + "dPackageH\000\022N\n\016zypper_package\030\003 \001(\01324.goo" - + "gle.cloud.osconfig.v1.Inventory.Versione" - + "dPackageH\000\022N\n\016googet_package\030\004 \001(\01324.goo" - + "gle.cloud.osconfig.v1.Inventory.Versione" - + "dPackageH\000\022G\n\014zypper_patch\030\005 \001(\0132/.googl" - + "e.cloud.osconfig.v1.Inventory.ZypperPatc" - + "hH\000\022O\n\013wua_package\030\006 \001(\01328.google.cloud." - + "osconfig.v1.Inventory.WindowsUpdatePacka" - + "geH\000\022\\\n\013qfe_package\030\007 \001(\0132E.google.cloud" - + ".osconfig.v1.Inventory.WindowsQuickFixEn" - + "gineeringPackageH\000\022K\n\013cos_package\030\010 \001(\0132" - + "4.google.cloud.osconfig.v1.Inventory.Ver" - + "sionedPackageH\000B\t\n\007details\032O\n\020VersionedP" - + "ackage\022\024\n\014package_name\030\004 \001(\t\022\024\n\014architec" - + "ture\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\032\203\003\n\024WindowsU" - + "pdatePackage\022\r\n\005title\030\001 \001(\t\022\023\n\013descripti" - + "on\030\002 \001(\t\022b\n\ncategories\030\003 \003(\0132N.google.cl" - + "oud.osconfig.v1.Inventory.WindowsUpdateP" - + "ackage.WindowsUpdateCategory\022\026\n\016kb_artic" - + "le_ids\030\004 \003(\t\022\023\n\013support_url\030\013 \001(\t\022\026\n\016mor" - + "e_info_urls\030\005 \003(\t\022\021\n\tupdate_id\030\006 \001(\t\022\027\n\017" - + "revision_number\030\007 \001(\005\022?\n\033last_deployment" - + "_change_time\030\n \001(\0132\032.google.protobuf.Tim" - + "estamp\0321\n\025WindowsUpdateCategory\022\n\n\002id\030\001 " - + "\001(\t\022\014\n\004name\030\002 \001(\t\032V\n\013ZypperPatch\022\022\n\npatc" - + "h_name\030\005 \001(\t\022\020\n\010category\030\002 \001(\t\022\020\n\010severi" - + "ty\030\003 \001(\t\022\017\n\007summary\030\004 \001(\t\032\217\001\n!WindowsQui" - + "ckFixEngineeringPackage\022\017\n\007caption\030\001 \001(\t" - + "\022\023\n\013description\030\002 \001(\t\022\022\n\nhot_fix_id\030\003 \001(" - + "\t\0220\n\014install_time\030\005 \001(\0132\032.google.protobu" - + "f.Timestamp\032V\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\0227" - + "\n\005value\030\002 \001(\0132(.google.cloud.osconfig.v1" - + ".Inventory.Item:\0028\001B\303\001\n\034com.google.cloud" - + ".osconfig.v1B\013InventoriesP\001Z@google.gola" - + "ng.org/genproto/googleapis/cloud/osconfi" - + "g/v1;osconfig\252\002\030Google.Cloud.OsConfig.V1" - + "\312\002\030Google\\Cloud\\OsConfig\\V1\352\002\033Google::Cl" - + "oud::OsConfig::V1b\006proto3" + + "tobuf/timestamp.proto\032\026google/type/date." + + "proto\"\237\024\n\tInventory\022;\n\007os_info\030\001 \001(\0132*.g" + + "oogle.cloud.osconfig.v1.Inventory.OsInfo" + + "\022=\n\005items\030\002 \003(\0132..google.cloud.osconfig." + + "v1.Inventory.ItemsEntry\032\270\001\n\006OsInfo\022\020\n\010ho" + + "stname\030\t \001(\t\022\021\n\tlong_name\030\002 \001(\t\022\022\n\nshort" + + "_name\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\024\n\014architec" + + "ture\030\005 \001(\t\022\026\n\016kernel_version\030\006 \001(\t\022\026\n\016ke" + + "rnel_release\030\007 \001(\t\022\036\n\026osconfig_agent_ver" + + "sion\030\010 \001(\t\032\267\004\n\004Item\022\n\n\002id\030\001 \001(\t\022H\n\013origi" + + "n_type\030\002 \001(\01623.google.cloud.osconfig.v1." + + "Inventory.Item.OriginType\022/\n\013create_time" + + "\030\010 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" + + "date_time\030\t \001(\0132\032.google.protobuf.Timest" + + "amp\022;\n\004type\030\005 \001(\0162-.google.cloud.osconfi" + + "g.v1.Inventory.Item.Type\022P\n\021installed_pa" + + "ckage\030\006 \001(\01323.google.cloud.osconfig.v1.I" + + "nventory.SoftwarePackageH\000\022P\n\021available_" + + "package\030\007 \001(\01323.google.cloud.osconfig.v1" + + ".Inventory.SoftwarePackageH\000\"?\n\nOriginTy" + + "pe\022\033\n\027ORIGIN_TYPE_UNSPECIFIED\020\000\022\024\n\020INVEN" + + "TORY_REPORT\020\001\"J\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\025\n\021INSTALLED_PACKAGE\020\001\022\025\n\021AVAILABLE_" + + "PACKAGE\020\002B\t\n\007details\032\362\005\n\017SoftwarePackage" + + "\022K\n\013yum_package\030\001 \001(\01324.google.cloud.osc" + + "onfig.v1.Inventory.VersionedPackageH\000\022K\n" + + "\013apt_package\030\002 \001(\01324.google.cloud.osconf" + + "ig.v1.Inventory.VersionedPackageH\000\022N\n\016zy" + + "pper_package\030\003 \001(\01324.google.cloud.osconf" + + "ig.v1.Inventory.VersionedPackageH\000\022N\n\016go" + + "oget_package\030\004 \001(\01324.google.cloud.osconf" + + "ig.v1.Inventory.VersionedPackageH\000\022G\n\014zy" + + "pper_patch\030\005 \001(\0132/.google.cloud.osconfig" + + ".v1.Inventory.ZypperPatchH\000\022O\n\013wua_packa" + + "ge\030\006 \001(\01328.google.cloud.osconfig.v1.Inve" + + "ntory.WindowsUpdatePackageH\000\022\\\n\013qfe_pack" + + "age\030\007 \001(\0132E.google.cloud.osconfig.v1.Inv" + + "entory.WindowsQuickFixEngineeringPackage" + + "H\000\022K\n\013cos_package\030\010 \001(\01324.google.cloud.o" + + "sconfig.v1.Inventory.VersionedPackageH\000\022" + + "U\n\023windows_application\030\t \001(\01326.google.cl" + + "oud.osconfig.v1.Inventory.WindowsApplica" + + "tionH\000B\t\n\007details\032O\n\020VersionedPackage\022\024\n" + + "\014package_name\030\004 \001(\t\022\024\n\014architecture\030\002 \001(" + + "\t\022\017\n\007version\030\003 \001(\t\032\203\003\n\024WindowsUpdatePack" + + "age\022\r\n\005title\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022" + + "b\n\ncategories\030\003 \003(\0132N.google.cloud.oscon" + + "fig.v1.Inventory.WindowsUpdatePackage.Wi" + + "ndowsUpdateCategory\022\026\n\016kb_article_ids\030\004 " + + "\003(\t\022\023\n\013support_url\030\013 \001(\t\022\026\n\016more_info_ur" + + "ls\030\005 \003(\t\022\021\n\tupdate_id\030\006 \001(\t\022\027\n\017revision_" + + "number\030\007 \001(\005\022?\n\033last_deployment_change_t" + + "ime\030\n \001(\0132\032.google.protobuf.Timestamp\0321\n" + + "\025WindowsUpdateCategory\022\n\n\002id\030\001 \001(\t\022\014\n\004na" + + "me\030\002 \001(\t\032V\n\013ZypperPatch\022\022\n\npatch_name\030\005 " + + "\001(\t\022\020\n\010category\030\002 \001(\t\022\020\n\010severity\030\003 \001(\t\022" + + "\017\n\007summary\030\004 \001(\t\032\217\001\n!WindowsQuickFixEngi" + + "neeringPackage\022\017\n\007caption\030\001 \001(\t\022\023\n\013descr" + + "iption\030\002 \001(\t\022\022\n\nhot_fix_id\030\003 \001(\t\0220\n\014inst" + + "all_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mp\032\222\001\n\022WindowsApplication\022\024\n\014display_nam" + + "e\030\001 \001(\t\022\027\n\017display_version\030\002 \001(\t\022\021\n\tpubl" + + "isher\030\003 \001(\t\022\'\n\014install_date\030\004 \001(\0132\021.goog" + + "le.type.Date\022\021\n\thelp_link\030\005 \001(\t\032V\n\nItems" + + "Entry\022\013\n\003key\030\001 \001(\t\0227\n\005value\030\002 \001(\0132(.goog" + + "le.cloud.osconfig.v1.Inventory.Item:\0028\001B" + + "\303\001\n\034com.google.cloud.osconfig.v1B\013Invent" + + "oriesP\001Z@google.golang.org/genproto/goog" + + "leapis/cloud/osconfig/v1;osconfig\252\002\030Goog" + + "le.Cloud.OsConfig.V1\312\002\030Google\\Cloud\\OsCo" + + "nfig\\V1\352\002\033Google::Cloud::OsConfig::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), }); internal_static_google_cloud_osconfig_v1_Inventory_descriptor = getDescriptor().getMessageTypes().get(0); @@ -202,6 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WuaPackage", "QfePackage", "CosPackage", + "WindowsApplication", "Details", }); internal_static_google_cloud_osconfig_v1_Inventory_VersionedPackage_descriptor = @@ -254,8 +267,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Caption", "Description", "HotFixId", "InstallTime", }); - internal_static_google_cloud_osconfig_v1_Inventory_ItemsEntry_descriptor = + internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_descriptor = internal_static_google_cloud_osconfig_v1_Inventory_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_descriptor, + new java.lang.String[] { + "DisplayName", "DisplayVersion", "Publisher", "InstallDate", "HelpLink", + }); + internal_static_google_cloud_osconfig_v1_Inventory_ItemsEntry_descriptor = + internal_static_google_cloud_osconfig_v1_Inventory_descriptor.getNestedTypes().get(8); internal_static_google_cloud_osconfig_v1_Inventory_ItemsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_osconfig_v1_Inventory_ItemsEntry_descriptor, @@ -263,6 +284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventory.java b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventory.java index 8c7bc8a3..78537de7 100644 --- a/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventory.java +++ b/proto-google-cloud-os-config-v1/src/main/java/com/google/cloud/osconfig/v1/Inventory.java @@ -5287,6 +5287,42 @@ public interface SoftwarePackageOrBuilder */ com.google.cloud.osconfig.v1.Inventory.VersionedPackageOrBuilder getCosPackageOrBuilder(); + /** + * + * + *
+     * Details of a Windows Application
+     * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + * @return Whether the windowsApplication field is set. + */ + boolean hasWindowsApplication(); + /** + * + * + *
+     * Details of a Windows Application
+     * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + * @return The windowsApplication. + */ + com.google.cloud.osconfig.v1.Inventory.WindowsApplication getWindowsApplication(); + /** + * + * + *
+     * Details of a Windows Application
+     * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + */ + com.google.cloud.osconfig.v1.Inventory.WindowsApplicationOrBuilder + getWindowsApplicationOrBuilder(); + public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage.DetailsCase getDetailsCase(); } /** @@ -5503,6 +5539,26 @@ private SoftwarePackage( detailsCase_ = 8; break; } + case 74: + { + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.Builder subBuilder = null; + if (detailsCase_ == 9) { + subBuilder = + ((com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 9; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -5552,6 +5608,7 @@ public enum DetailsCase WUA_PACKAGE(6), QFE_PACKAGE(7), COS_PACKAGE(8), + WINDOWS_APPLICATION(9), DETAILS_NOT_SET(0); private final int value; @@ -5586,6 +5643,8 @@ public static DetailsCase forNumber(int value) { return QFE_PACKAGE; case 8: return COS_PACKAGE; + case 9: + return WINDOWS_APPLICATION; case 0: return DETAILS_NOT_SET; default: @@ -6068,6 +6127,58 @@ public com.google.cloud.osconfig.v1.Inventory.VersionedPackage getCosPackage() { return com.google.cloud.osconfig.v1.Inventory.VersionedPackage.getDefaultInstance(); } + public static final int WINDOWS_APPLICATION_FIELD_NUMBER = 9; + /** + * + * + *
+     * Details of a Windows Application
+     * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + * @return Whether the windowsApplication field is set. + */ + @java.lang.Override + public boolean hasWindowsApplication() { + return detailsCase_ == 9; + } + /** + * + * + *
+     * Details of a Windows Application
+     * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + * @return The windowsApplication. + */ + @java.lang.Override + public com.google.cloud.osconfig.v1.Inventory.WindowsApplication getWindowsApplication() { + if (detailsCase_ == 9) { + return (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_; + } + return com.google.cloud.osconfig.v1.Inventory.WindowsApplication.getDefaultInstance(); + } + /** + * + * + *
+     * Details of a Windows Application
+     * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + */ + @java.lang.Override + public com.google.cloud.osconfig.v1.Inventory.WindowsApplicationOrBuilder + getWindowsApplicationOrBuilder() { + if (detailsCase_ == 9) { + return (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_; + } + return com.google.cloud.osconfig.v1.Inventory.WindowsApplication.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6108,6 +6219,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (detailsCase_ == 8) { output.writeMessage(8, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_); } + if (detailsCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_); + } unknownFields.writeTo(output); } @@ -6159,6 +6274,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.cloud.osconfig.v1.Inventory.VersionedPackage) details_); } + if (detailsCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -6201,6 +6321,9 @@ public boolean equals(final java.lang.Object obj) { case 8: if (!getCosPackage().equals(other.getCosPackage())) return false; break; + case 9: + if (!getWindowsApplication().equals(other.getWindowsApplication())) return false; + break; case 0: default: } @@ -6248,6 +6371,10 @@ public int hashCode() { hash = (37 * hash) + COS_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getCosPackage().hashCode(); break; + case 9: + hash = (37 * hash) + WINDOWS_APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getWindowsApplication().hashCode(); + break; case 0: default: } @@ -6484,6 +6611,13 @@ public com.google.cloud.osconfig.v1.Inventory.SoftwarePackage buildPartial() { result.details_ = cosPackageBuilder_.build(); } } + if (detailsCase_ == 9) { + if (windowsApplicationBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = windowsApplicationBuilder_.build(); + } + } result.detailsCase_ = detailsCase_; onBuilt(); return result; @@ -6578,6 +6712,11 @@ public Builder mergeFrom(com.google.cloud.osconfig.v1.Inventory.SoftwarePackage mergeCosPackage(other.getCosPackage()); break; } + case WINDOWS_APPLICATION: + { + mergeWindowsApplication(other.getWindowsApplication()); + break; + } case DETAILS_NOT_SET: { break; @@ -8500,6 +8639,231 @@ public Builder clearCosPackage() { return cosPackageBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.osconfig.v1.Inventory.WindowsApplication, + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.Builder, + com.google.cloud.osconfig.v1.Inventory.WindowsApplicationOrBuilder> + windowsApplicationBuilder_; + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + * + * @return Whether the windowsApplication field is set. + */ + @java.lang.Override + public boolean hasWindowsApplication() { + return detailsCase_ == 9; + } + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + * + * @return The windowsApplication. + */ + @java.lang.Override + public com.google.cloud.osconfig.v1.Inventory.WindowsApplication getWindowsApplication() { + if (windowsApplicationBuilder_ == null) { + if (detailsCase_ == 9) { + return (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_; + } + return com.google.cloud.osconfig.v1.Inventory.WindowsApplication.getDefaultInstance(); + } else { + if (detailsCase_ == 9) { + return windowsApplicationBuilder_.getMessage(); + } + return com.google.cloud.osconfig.v1.Inventory.WindowsApplication.getDefaultInstance(); + } + } + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + */ + public Builder setWindowsApplication( + com.google.cloud.osconfig.v1.Inventory.WindowsApplication value) { + if (windowsApplicationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + windowsApplicationBuilder_.setMessage(value); + } + detailsCase_ = 9; + return this; + } + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + */ + public Builder setWindowsApplication( + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.Builder builderForValue) { + if (windowsApplicationBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + windowsApplicationBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 9; + return this; + } + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + */ + public Builder mergeWindowsApplication( + com.google.cloud.osconfig.v1.Inventory.WindowsApplication value) { + if (windowsApplicationBuilder_ == null) { + if (detailsCase_ == 9 + && details_ + != com.google.cloud.osconfig.v1.Inventory.WindowsApplication + .getDefaultInstance()) { + details_ = + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.newBuilder( + (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 9) { + windowsApplicationBuilder_.mergeFrom(value); + } + windowsApplicationBuilder_.setMessage(value); + } + detailsCase_ = 9; + return this; + } + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + */ + public Builder clearWindowsApplication() { + if (windowsApplicationBuilder_ == null) { + if (detailsCase_ == 9) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 9) { + detailsCase_ = 0; + details_ = null; + } + windowsApplicationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + */ + public com.google.cloud.osconfig.v1.Inventory.WindowsApplication.Builder + getWindowsApplicationBuilder() { + return getWindowsApplicationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + */ + @java.lang.Override + public com.google.cloud.osconfig.v1.Inventory.WindowsApplicationOrBuilder + getWindowsApplicationOrBuilder() { + if ((detailsCase_ == 9) && (windowsApplicationBuilder_ != null)) { + return windowsApplicationBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 9) { + return (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_; + } + return com.google.cloud.osconfig.v1.Inventory.WindowsApplication.getDefaultInstance(); + } + } + /** + * + * + *
+       * Details of a Windows Application
+       * 
+ * + * .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.osconfig.v1.Inventory.WindowsApplication, + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.Builder, + com.google.cloud.osconfig.v1.Inventory.WindowsApplicationOrBuilder> + getWindowsApplicationFieldBuilder() { + if (windowsApplicationBuilder_ == null) { + if (!(detailsCase_ == 9)) { + details_ = + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.getDefaultInstance(); + } + windowsApplicationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.osconfig.v1.Inventory.WindowsApplication, + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.Builder, + com.google.cloud.osconfig.v1.Inventory.WindowsApplicationOrBuilder>( + (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 9; + onChanged(); + ; + return windowsApplicationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16253,6 +16617,1607 @@ public com.google.protobuf.Parser getParserFo } } + public interface WindowsApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1.Inventory.WindowsApplication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the application or product.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+     * The name of the application or product.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * The version of the product or application in string format.
+     * 
+ * + * string display_version = 2; + * + * @return The displayVersion. + */ + java.lang.String getDisplayVersion(); + /** + * + * + *
+     * The version of the product or application in string format.
+     * 
+ * + * string display_version = 2; + * + * @return The bytes for displayVersion. + */ + com.google.protobuf.ByteString getDisplayVersionBytes(); + + /** + * + * + *
+     * The name of the manufacturer for the product or application.
+     * 
+ * + * string publisher = 3; + * + * @return The publisher. + */ + java.lang.String getPublisher(); + /** + * + * + *
+     * The name of the manufacturer for the product or application.
+     * 
+ * + * string publisher = 3; + * + * @return The bytes for publisher. + */ + com.google.protobuf.ByteString getPublisherBytes(); + + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + * + * @return Whether the installDate field is set. + */ + boolean hasInstallDate(); + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + * + * @return The installDate. + */ + com.google.type.Date getInstallDate(); + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + */ + com.google.type.DateOrBuilder getInstallDateOrBuilder(); + + /** + * + * + *
+     * The internet address for technical support.
+     * 
+ * + * string help_link = 5; + * + * @return The helpLink. + */ + java.lang.String getHelpLink(); + /** + * + * + *
+     * The internet address for technical support.
+     * 
+ * + * string help_link = 5; + * + * @return The bytes for helpLink. + */ + com.google.protobuf.ByteString getHelpLinkBytes(); + } + /** + * + * + *
+   * Contains information about a Windows application as retrieved from the
+   * Windows Registry. For more information about these fields, see
+   * [Windows Installer Properties for the Uninstall
+   * Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
+   * class="external" }
+   * 
+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.WindowsApplication} + */ + public static final class WindowsApplication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1.Inventory.WindowsApplication) + WindowsApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use WindowsApplication.newBuilder() to construct. + private WindowsApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WindowsApplication() { + displayName_ = ""; + displayVersion_ = ""; + publisher_ = ""; + helpLink_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WindowsApplication(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WindowsApplication( + 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(); + + displayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayVersion_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + publisher_ = s; + break; + } + case 34: + { + com.google.type.Date.Builder subBuilder = null; + if (installDate_ != null) { + subBuilder = installDate_.toBuilder(); + } + installDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(installDate_); + installDate_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + helpLink_ = 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.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.class, + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+     * The name of the application or product.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the application or product.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object displayVersion_; + /** + * + * + *
+     * The version of the product or application in string format.
+     * 
+ * + * string display_version = 2; + * + * @return The displayVersion. + */ + @java.lang.Override + public java.lang.String getDisplayVersion() { + java.lang.Object ref = displayVersion_; + 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(); + displayVersion_ = s; + return s; + } + } + /** + * + * + *
+     * The version of the product or application in string format.
+     * 
+ * + * string display_version = 2; + * + * @return The bytes for displayVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayVersionBytes() { + java.lang.Object ref = displayVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLISHER_FIELD_NUMBER = 3; + private volatile java.lang.Object publisher_; + /** + * + * + *
+     * The name of the manufacturer for the product or application.
+     * 
+ * + * string publisher = 3; + * + * @return The publisher. + */ + @java.lang.Override + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + 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(); + publisher_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the manufacturer for the product or application.
+     * 
+ * + * string publisher = 3; + * + * @return The bytes for publisher. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTALL_DATE_FIELD_NUMBER = 4; + private com.google.type.Date installDate_; + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + * + * @return Whether the installDate field is set. + */ + @java.lang.Override + public boolean hasInstallDate() { + return installDate_ != null; + } + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + * + * @return The installDate. + */ + @java.lang.Override + public com.google.type.Date getInstallDate() { + return installDate_ == null ? com.google.type.Date.getDefaultInstance() : installDate_; + } + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getInstallDateOrBuilder() { + return getInstallDate(); + } + + public static final int HELP_LINK_FIELD_NUMBER = 5; + private volatile java.lang.Object helpLink_; + /** + * + * + *
+     * The internet address for technical support.
+     * 
+ * + * string help_link = 5; + * + * @return The helpLink. + */ + @java.lang.Override + public java.lang.String getHelpLink() { + java.lang.Object ref = helpLink_; + 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(); + helpLink_ = s; + return s; + } + } + /** + * + * + *
+     * The internet address for technical support.
+     * 
+ * + * string help_link = 5; + * + * @return The bytes for helpLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHelpLinkBytes() { + java.lang.Object ref = helpLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + helpLink_ = 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 (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!getDisplayVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayVersion_); + } + if (!getPublisherBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publisher_); + } + if (installDate_ != null) { + output.writeMessage(4, getInstallDate()); + } + if (!getHelpLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, helpLink_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!getDisplayVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayVersion_); + } + if (!getPublisherBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publisher_); + } + if (installDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInstallDate()); + } + if (!getHelpLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, helpLink_); + } + 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.Inventory.WindowsApplication)) { + return super.equals(obj); + } + com.google.cloud.osconfig.v1.Inventory.WindowsApplication other = + (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayVersion().equals(other.getDisplayVersion())) return false; + if (!getPublisher().equals(other.getPublisher())) return false; + if (hasInstallDate() != other.hasInstallDate()) return false; + if (hasInstallDate()) { + if (!getInstallDate().equals(other.getInstallDate())) return false; + } + if (!getHelpLink().equals(other.getHelpLink())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DISPLAY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVersion().hashCode(); + hash = (37 * hash) + PUBLISHER_FIELD_NUMBER; + hash = (53 * hash) + getPublisher().hashCode(); + if (hasInstallDate()) { + hash = (37 * hash) + INSTALL_DATE_FIELD_NUMBER; + hash = (53 * hash) + getInstallDate().hashCode(); + } + hash = (37 * hash) + HELP_LINK_FIELD_NUMBER; + hash = (53 * hash) + getHelpLink().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.osconfig.v1.Inventory.WindowsApplication parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.osconfig.v1.Inventory.WindowsApplication 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.Inventory.WindowsApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.osconfig.v1.Inventory.WindowsApplication 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.Inventory.WindowsApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.osconfig.v1.Inventory.WindowsApplication 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.Inventory.WindowsApplication parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.osconfig.v1.Inventory.WindowsApplication 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.Inventory.WindowsApplication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.osconfig.v1.Inventory.WindowsApplication 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.Inventory.WindowsApplication 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.Inventory.WindowsApplication 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.Inventory.WindowsApplication 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; + } + /** + * + * + *
+     * Contains information about a Windows application as retrieved from the
+     * Windows Registry. For more information about these fields, see
+     * [Windows Installer Properties for the Uninstall
+     * Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
+     * class="external" }
+     * 
+ * + * Protobuf type {@code google.cloud.osconfig.v1.Inventory.WindowsApplication} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1.Inventory.WindowsApplication) + com.google.cloud.osconfig.v1.Inventory.WindowsApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.class, + com.google.cloud.osconfig.v1.Inventory.WindowsApplication.Builder.class); + } + + // Construct using com.google.cloud.osconfig.v1.Inventory.WindowsApplication.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(); + displayName_ = ""; + + displayVersion_ = ""; + + publisher_ = ""; + + if (installDateBuilder_ == null) { + installDate_ = null; + } else { + installDate_ = null; + installDateBuilder_ = null; + } + helpLink_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.osconfig.v1.Inventories + .internal_static_google_cloud_osconfig_v1_Inventory_WindowsApplication_descriptor; + } + + @java.lang.Override + public com.google.cloud.osconfig.v1.Inventory.WindowsApplication getDefaultInstanceForType() { + return com.google.cloud.osconfig.v1.Inventory.WindowsApplication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.osconfig.v1.Inventory.WindowsApplication build() { + com.google.cloud.osconfig.v1.Inventory.WindowsApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.osconfig.v1.Inventory.WindowsApplication buildPartial() { + com.google.cloud.osconfig.v1.Inventory.WindowsApplication result = + new com.google.cloud.osconfig.v1.Inventory.WindowsApplication(this); + result.displayName_ = displayName_; + result.displayVersion_ = displayVersion_; + result.publisher_ = publisher_; + if (installDateBuilder_ == null) { + result.installDate_ = installDate_; + } else { + result.installDate_ = installDateBuilder_.build(); + } + result.helpLink_ = helpLink_; + 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.Inventory.WindowsApplication) { + return mergeFrom((com.google.cloud.osconfig.v1.Inventory.WindowsApplication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.osconfig.v1.Inventory.WindowsApplication other) { + if (other == com.google.cloud.osconfig.v1.Inventory.WindowsApplication.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDisplayVersion().isEmpty()) { + displayVersion_ = other.displayVersion_; + onChanged(); + } + if (!other.getPublisher().isEmpty()) { + publisher_ = other.publisher_; + onChanged(); + } + if (other.hasInstallDate()) { + mergeInstallDate(other.getInstallDate()); + } + if (!other.getHelpLink().isEmpty()) { + helpLink_ = other.helpLink_; + 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.Inventory.WindowsApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.osconfig.v1.Inventory.WindowsApplication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayVersion_ = ""; + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @return The displayVersion. + */ + public java.lang.String getDisplayVersion() { + java.lang.Object ref = displayVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @return The bytes for displayVersion. + */ + public com.google.protobuf.ByteString getDisplayVersionBytes() { + java.lang.Object ref = displayVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @param value The displayVersion to set. + * @return This builder for chaining. + */ + public Builder setDisplayVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayVersion() { + + displayVersion_ = getDefaultInstance().getDisplayVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @param value The bytes for displayVersion to set. + * @return This builder for chaining. + */ + public Builder setDisplayVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object publisher_ = ""; + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @return The publisher. + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @return The bytes for publisher. + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @param value The publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publisher_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @return This builder for chaining. + */ + public Builder clearPublisher() { + + publisher_ = getDefaultInstance().getPublisher(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @param value The bytes for publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publisher_ = value; + onChanged(); + return this; + } + + private com.google.type.Date installDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + installDateBuilder_; + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + * + * @return Whether the installDate field is set. + */ + public boolean hasInstallDate() { + return installDateBuilder_ != null || installDate_ != null; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + * + * @return The installDate. + */ + public com.google.type.Date getInstallDate() { + if (installDateBuilder_ == null) { + return installDate_ == null ? com.google.type.Date.getDefaultInstance() : installDate_; + } else { + return installDateBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public Builder setInstallDate(com.google.type.Date value) { + if (installDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + installDate_ = value; + onChanged(); + } else { + installDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public Builder setInstallDate(com.google.type.Date.Builder builderForValue) { + if (installDateBuilder_ == null) { + installDate_ = builderForValue.build(); + onChanged(); + } else { + installDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public Builder mergeInstallDate(com.google.type.Date value) { + if (installDateBuilder_ == null) { + if (installDate_ != null) { + installDate_ = + com.google.type.Date.newBuilder(installDate_).mergeFrom(value).buildPartial(); + } else { + installDate_ = value; + } + onChanged(); + } else { + installDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public Builder clearInstallDate() { + if (installDateBuilder_ == null) { + installDate_ = null; + onChanged(); + } else { + installDate_ = null; + installDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public com.google.type.Date.Builder getInstallDateBuilder() { + + onChanged(); + return getInstallDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public com.google.type.DateOrBuilder getInstallDateOrBuilder() { + if (installDateBuilder_ != null) { + return installDateBuilder_.getMessageOrBuilder(); + } else { + return installDate_ == null ? com.google.type.Date.getDefaultInstance() : installDate_; + } + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getInstallDateFieldBuilder() { + if (installDateBuilder_ == null) { + installDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, + com.google.type.Date.Builder, + com.google.type.DateOrBuilder>( + getInstallDate(), getParentForChildren(), isClean()); + installDate_ = null; + } + return installDateBuilder_; + } + + private java.lang.Object helpLink_ = ""; + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @return The helpLink. + */ + public java.lang.String getHelpLink() { + java.lang.Object ref = helpLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + helpLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @return The bytes for helpLink. + */ + public com.google.protobuf.ByteString getHelpLinkBytes() { + java.lang.Object ref = helpLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + helpLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @param value The helpLink to set. + * @return This builder for chaining. + */ + public Builder setHelpLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + helpLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @return This builder for chaining. + */ + public Builder clearHelpLink() { + + helpLink_ = getDefaultInstance().getHelpLink(); + onChanged(); + return this; + } + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @param value The bytes for helpLink to set. + * @return This builder for chaining. + */ + public Builder setHelpLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + helpLink_ = 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.Inventory.WindowsApplication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1.Inventory.WindowsApplication) + private static final com.google.cloud.osconfig.v1.Inventory.WindowsApplication DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1.Inventory.WindowsApplication(); + } + + public static com.google.cloud.osconfig.v1.Inventory.WindowsApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WindowsApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WindowsApplication(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.Inventory.WindowsApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int OS_INFO_FIELD_NUMBER = 1; private com.google.cloud.osconfig.v1.Inventory.OsInfo osInfo_; /** diff --git a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/inventory.proto b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/inventory.proto index ba3318e7..11c998ac 100644 --- a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/inventory.proto +++ b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/inventory.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.osconfig.v1; import "google/protobuf/timestamp.proto"; +import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; @@ -152,6 +153,9 @@ message Inventory { // Details of a COS package. VersionedPackage cos_package = 8; + + // Details of a Windows Application + WindowsApplication windows_application = 9; } } @@ -247,6 +251,31 @@ message Inventory { google.protobuf.Timestamp install_time = 5; } + // Contains information about a Windows application as retrieved from the + // Windows Registry. For more information about these fields, see + // + // [Windows Installer Properties for the Uninstall + // Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){: + // class="external" } + message WindowsApplication { + // The name of the application or product. + string display_name = 1; + + // The version of the product or application in string format. + string display_version = 2; + + // The name of the manufacturer for the product or application. + string publisher = 3; + + // The last time this product received service. The value of this property + // is replaced each time a patch is applied or removed from the product or + // the command-line option is used to repair the product. + google.type.Date install_date = 4; + + // The internet address for technical support. + string help_link = 5; + } + // Base level operating system information for the VM. OsInfo os_info = 1; diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/Inventories.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/Inventories.java index 1188e91c..b711380a 100644 --- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/Inventories.java +++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/Inventories.java @@ -63,6 +63,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsQuickFixEngineeringPackage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsQuickFixEngineeringPackage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_osconfig_v1alpha_Inventory_ItemsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -92,91 +96,98 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "y.proto\022\035google.cloud.osconfig.v1alpha\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\037google/protobuf/time" - + "stamp.proto\"\306\024\n\tInventory\022\021\n\004name\030\003 \001(\tB" - + "\003\340A\003\022E\n\007os_info\030\001 \001(\0132/.google.cloud.osc" - + "onfig.v1alpha.Inventory.OsInfoB\003\340A\003\022G\n\005i" - + "tems\030\002 \003(\01323.google.cloud.osconfig.v1alp" - + "ha.Inventory.ItemsEntryB\003\340A\003\0224\n\013update_t" - + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\032\270\001\n\006OsInfo\022\020\n\010hostname\030\t \001(\t\022\021\n\tlong_" - + "name\030\002 \001(\t\022\022\n\nshort_name\030\003 \001(\t\022\017\n\007versio" - + "n\030\004 \001(\t\022\024\n\014architecture\030\005 \001(\t\022\026\n\016kernel_" - + "version\030\006 \001(\t\022\026\n\016kernel_release\030\007 \001(\t\022\036\n" - + "\026osconfig_agent_version\030\010 \001(\t\032\313\004\n\004Item\022\n" - + "\n\002id\030\001 \001(\t\022M\n\013origin_type\030\002 \001(\01628.google" - + ".cloud.osconfig.v1alpha.Inventory.Item.O" - + "riginType\022/\n\013create_time\030\010 \001(\0132\032.google." - + "protobuf.Timestamp\022/\n\013update_time\030\t \001(\0132" - + "\032.google.protobuf.Timestamp\022@\n\004type\030\005 \001(" - + "\01622.google.cloud.osconfig.v1alpha.Invent" - + "ory.Item.Type\022U\n\021installed_package\030\006 \001(\013" - + "28.google.cloud.osconfig.v1alpha.Invento" - + "ry.SoftwarePackageH\000\022U\n\021available_packag" - + "e\030\007 \001(\01328.google.cloud.osconfig.v1alpha." - + "Inventory.SoftwarePackageH\000\"?\n\nOriginTyp" - + "e\022\033\n\027ORIGIN_TYPE_UNSPECIFIED\020\000\022\024\n\020INVENT" - + "ORY_REPORT\020\001\"J\n\004Type\022\024\n\020TYPE_UNSPECIFIED" - + "\020\000\022\025\n\021INSTALLED_PACKAGE\020\001\022\025\n\021AVAILABLE_P" - + "ACKAGE\020\002B\t\n\007details\032\303\005\n\017SoftwarePackage\022" - + "P\n\013yum_package\030\001 \001(\01329.google.cloud.osco" - + "nfig.v1alpha.Inventory.VersionedPackageH" - + "\000\022P\n\013apt_package\030\002 \001(\01329.google.cloud.os" - + "config.v1alpha.Inventory.VersionedPackag" - + "eH\000\022S\n\016zypper_package\030\003 \001(\01329.google.clo" - + "ud.osconfig.v1alpha.Inventory.VersionedP" - + "ackageH\000\022S\n\016googet_package\030\004 \001(\01329.googl" - + "e.cloud.osconfig.v1alpha.Inventory.Versi" - + "onedPackageH\000\022L\n\014zypper_patch\030\005 \001(\01324.go" - + "ogle.cloud.osconfig.v1alpha.Inventory.Zy" - + "pperPatchH\000\022T\n\013wua_package\030\006 \001(\0132=.googl" - + "e.cloud.osconfig.v1alpha.Inventory.Windo" - + "wsUpdatePackageH\000\022a\n\013qfe_package\030\007 \001(\0132J" - + ".google.cloud.osconfig.v1alpha.Inventory" - + ".WindowsQuickFixEngineeringPackageH\000\022P\n\013" - + "cos_package\030\010 \001(\01329.google.cloud.osconfi" - + "g.v1alpha.Inventory.VersionedPackageH\000B\t" - + "\n\007details\032O\n\020VersionedPackage\022\024\n\014package" - + "_name\030\004 \001(\t\022\024\n\014architecture\030\002 \001(\t\022\017\n\007ver" - + "sion\030\003 \001(\t\032V\n\013ZypperPatch\022\022\n\npatch_name\030" - + "\005 \001(\t\022\020\n\010category\030\002 \001(\t\022\020\n\010severity\030\003 \001(" - + "\t\022\017\n\007summary\030\004 \001(\t\032\210\003\n\024WindowsUpdatePack" - + "age\022\r\n\005title\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022" - + "g\n\ncategories\030\003 \003(\0132S.google.cloud.oscon" - + "fig.v1alpha.Inventory.WindowsUpdatePacka" - + "ge.WindowsUpdateCategory\022\026\n\016kb_article_i" - + "ds\030\004 \003(\t\022\023\n\013support_url\030\013 \001(\t\022\026\n\016more_in" - + "fo_urls\030\005 \003(\t\022\021\n\tupdate_id\030\006 \001(\t\022\027\n\017revi" - + "sion_number\030\007 \001(\005\022?\n\033last_deployment_cha" - + "nge_time\030\n \001(\0132\032.google.protobuf.Timesta" - + "mp\0321\n\025WindowsUpdateCategory\022\n\n\002id\030\001 \001(\t\022" - + "\014\n\004name\030\002 \001(\t\032\217\001\n!WindowsQuickFixEnginee" - + "ringPackage\022\017\n\007caption\030\001 \001(\t\022\023\n\013descript" - + "ion\030\002 \001(\t\022\022\n\nhot_fix_id\030\003 \001(\t\0220\n\014install" - + "_time\030\005 \001(\0132\032.google.protobuf.Timestamp\032" - + "[\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(" - + "\0132-.google.cloud.osconfig.v1alpha.Invent" - + "ory.Item:\0028\001:n\352Ak\n!osconfig.googleapis.c" - + "om/Inventory\022Fprojects/{project}/locatio" - + "ns/{location}/instances/{instance}/inven" - + "tory\"\212\001\n\023GetInventoryRequest\0227\n\004name\030\001 \001" - + "(\tB)\340A\002\372A#\n!osconfig.googleapis.com/Inve" - + "ntory\022:\n\004view\030\002 \001(\0162,.google.cloud.oscon" - + "fig.v1alpha.InventoryView\"\304\001\n\026ListInvent" - + "oriesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037co" - + "mpute.googleapis.com/Instance\022:\n\004view\030\002 " - + "\001(\0162,.google.cloud.osconfig.v1alpha.Inve" - + "ntoryView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_tok" - + "en\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\"q\n\027ListInventor" - + "iesResponse\022=\n\013inventories\030\001 \003(\0132(.googl" - + "e.cloud.osconfig.v1alpha.Inventory\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t*D\n\rInventoryView\022\036\n\032" - + "INVENTORY_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022" - + "\010\n\004FULL\020\002B\334\001\n!com.google.cloud.osconfig." - + "v1alphaB\013InventoriesP\001ZEgoogle.golang.or" - + "g/genproto/googleapis/cloud/osconfig/v1a" - + "lpha;osconfig\252\002\035Google.Cloud.OsConfig.V1" - + "Alpha\312\002\035Google\\Cloud\\OsConfig\\V1alpha\352\002 " - + "Google::Cloud::OsConfig::V1alphab\006proto3" + + "stamp.proto\032\026google/type/date.proto\"\267\026\n\t" + + "Inventory\022\021\n\004name\030\003 \001(\tB\003\340A\003\022E\n\007os_info\030" + + "\001 \001(\0132/.google.cloud.osconfig.v1alpha.In" + + "ventory.OsInfoB\003\340A\003\022G\n\005items\030\002 \003(\01323.goo" + + "gle.cloud.osconfig.v1alpha.Inventory.Ite" + + "msEntryB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\032\270\001\n\006OsInfo\022\020\n" + + "\010hostname\030\t \001(\t\022\021\n\tlong_name\030\002 \001(\t\022\022\n\nsh" + + "ort_name\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\024\n\014archi" + + "tecture\030\005 \001(\t\022\026\n\016kernel_version\030\006 \001(\t\022\026\n" + + "\016kernel_release\030\007 \001(\t\022\036\n\026osconfig_agent_" + + "version\030\010 \001(\t\032\313\004\n\004Item\022\n\n\002id\030\001 \001(\t\022M\n\013or" + + "igin_type\030\002 \001(\01628.google.cloud.osconfig." + + "v1alpha.Inventory.Item.OriginType\022/\n\013cre" + + "ate_time\030\010 \001(\0132\032.google.protobuf.Timesta" + + "mp\022/\n\013update_time\030\t \001(\0132\032.google.protobu" + + "f.Timestamp\022@\n\004type\030\005 \001(\01622.google.cloud" + + ".osconfig.v1alpha.Inventory.Item.Type\022U\n" + + "\021installed_package\030\006 \001(\01328.google.cloud." + + "osconfig.v1alpha.Inventory.SoftwarePacka" + + "geH\000\022U\n\021available_package\030\007 \001(\01328.google" + + ".cloud.osconfig.v1alpha.Inventory.Softwa" + + "rePackageH\000\"?\n\nOriginType\022\033\n\027ORIGIN_TYPE" + + "_UNSPECIFIED\020\000\022\024\n\020INVENTORY_REPORT\020\001\"J\n\004" + + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\025\n\021INSTALLED_" + + "PACKAGE\020\001\022\025\n\021AVAILABLE_PACKAGE\020\002B\t\n\007deta" + + "ils\032\237\006\n\017SoftwarePackage\022P\n\013yum_package\030\001" + + " \001(\01329.google.cloud.osconfig.v1alpha.Inv" + + "entory.VersionedPackageH\000\022P\n\013apt_package" + + "\030\002 \001(\01329.google.cloud.osconfig.v1alpha.I" + + "nventory.VersionedPackageH\000\022S\n\016zypper_pa" + + "ckage\030\003 \001(\01329.google.cloud.osconfig.v1al" + + "pha.Inventory.VersionedPackageH\000\022S\n\016goog" + + "et_package\030\004 \001(\01329.google.cloud.osconfig" + + ".v1alpha.Inventory.VersionedPackageH\000\022L\n" + + "\014zypper_patch\030\005 \001(\01324.google.cloud.oscon" + + "fig.v1alpha.Inventory.ZypperPatchH\000\022T\n\013w" + + "ua_package\030\006 \001(\0132=.google.cloud.osconfig" + + ".v1alpha.Inventory.WindowsUpdatePackageH" + + "\000\022a\n\013qfe_package\030\007 \001(\0132J.google.cloud.os" + + "config.v1alpha.Inventory.WindowsQuickFix" + + "EngineeringPackageH\000\022P\n\013cos_package\030\010 \001(" + + "\01329.google.cloud.osconfig.v1alpha.Invent" + + "ory.VersionedPackageH\000\022Z\n\023windows_applic" + + "ation\030\t \001(\0132;.google.cloud.osconfig.v1al" + + "pha.Inventory.WindowsApplicationH\000B\t\n\007de" + + "tails\032O\n\020VersionedPackage\022\024\n\014package_nam" + + "e\030\004 \001(\t\022\024\n\014architecture\030\002 \001(\t\022\017\n\007version" + + "\030\003 \001(\t\032V\n\013ZypperPatch\022\022\n\npatch_name\030\005 \001(" + + "\t\022\020\n\010category\030\002 \001(\t\022\020\n\010severity\030\003 \001(\t\022\017\n" + + "\007summary\030\004 \001(\t\032\210\003\n\024WindowsUpdatePackage\022" + + "\r\n\005title\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022g\n\nc" + + "ategories\030\003 \003(\0132S.google.cloud.osconfig." + + "v1alpha.Inventory.WindowsUpdatePackage.W" + + "indowsUpdateCategory\022\026\n\016kb_article_ids\030\004" + + " \003(\t\022\023\n\013support_url\030\013 \001(\t\022\026\n\016more_info_u" + + "rls\030\005 \003(\t\022\021\n\tupdate_id\030\006 \001(\t\022\027\n\017revision" + + "_number\030\007 \001(\005\022?\n\033last_deployment_change_" + + "time\030\n \001(\0132\032.google.protobuf.Timestamp\0321" + + "\n\025WindowsUpdateCategory\022\n\n\002id\030\001 \001(\t\022\014\n\004n" + + "ame\030\002 \001(\t\032\217\001\n!WindowsQuickFixEngineering" + + "Package\022\017\n\007caption\030\001 \001(\t\022\023\n\013description\030" + + "\002 \001(\t\022\022\n\nhot_fix_id\030\003 \001(\t\0220\n\014install_tim" + + "e\030\005 \001(\0132\032.google.protobuf.Timestamp\032\222\001\n\022" + + "WindowsApplication\022\024\n\014display_name\030\001 \001(\t" + + "\022\027\n\017display_version\030\002 \001(\t\022\021\n\tpublisher\030\003" + + " \001(\t\022\'\n\014install_date\030\004 \001(\0132\021.google.type" + + ".Date\022\021\n\thelp_link\030\005 \001(\t\032[\n\nItemsEntry\022\013" + + "\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.google.clou" + + "d.osconfig.v1alpha.Inventory.Item:\0028\001:n\352" + + "Ak\n!osconfig.googleapis.com/Inventory\022Fp" + + "rojects/{project}/locations/{location}/i" + + "nstances/{instance}/inventory\"\212\001\n\023GetInv" + + "entoryRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!osc" + + "onfig.googleapis.com/Inventory\022:\n\004view\030\002" + + " \001(\0162,.google.cloud.osconfig.v1alpha.Inv" + + "entoryView\"\304\001\n\026ListInventoriesRequest\0227\n" + + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037compute.googleapi" + + "s.com/Instance\022:\n\004view\030\002 \001(\0162,.google.cl" + + "oud.osconfig.v1alpha.InventoryView\022\021\n\tpa" + + "ge_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\016\n\006fil" + + "ter\030\005 \001(\t\"q\n\027ListInventoriesResponse\022=\n\013" + + "inventories\030\001 \003(\0132(.google.cloud.osconfi" + + "g.v1alpha.Inventory\022\027\n\017next_page_token\030\002" + + " \001(\t*D\n\rInventoryView\022\036\n\032INVENTORY_VIEW_" + + "UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002B\334\001\n!c" + + "om.google.cloud.osconfig.v1alphaB\013Invent" + + "oriesP\001ZEgoogle.golang.org/genproto/goog" + + "leapis/cloud/osconfig/v1alpha;osconfig\252\002" + + "\035Google.Cloud.OsConfig.V1Alpha\312\002\035Google\\" + + "Cloud\\OsConfig\\V1alpha\352\002 Google::Cloud::" + + "OsConfig::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -185,6 +196,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), }); internal_static_google_cloud_osconfig_v1alpha_Inventory_descriptor = getDescriptor().getMessageTypes().get(0); @@ -238,6 +250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WuaPackage", "QfePackage", "CosPackage", + "WindowsApplication", "Details", }); internal_static_google_cloud_osconfig_v1alpha_Inventory_VersionedPackage_descriptor = @@ -290,8 +303,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Caption", "Description", "HotFixId", "InstallTime", }); - internal_static_google_cloud_osconfig_v1alpha_Inventory_ItemsEntry_descriptor = + internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_descriptor = internal_static_google_cloud_osconfig_v1alpha_Inventory_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_descriptor, + new java.lang.String[] { + "DisplayName", "DisplayVersion", "Publisher", "InstallDate", "HelpLink", + }); + internal_static_google_cloud_osconfig_v1alpha_Inventory_ItemsEntry_descriptor = + internal_static_google_cloud_osconfig_v1alpha_Inventory_descriptor.getNestedTypes().get(8); internal_static_google_cloud_osconfig_v1alpha_Inventory_ItemsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_osconfig_v1alpha_Inventory_ItemsEntry_descriptor, @@ -332,6 +353,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/Inventory.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/Inventory.java index 99b16606..1c308c12 100644 --- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/Inventory.java +++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/Inventory.java @@ -5360,6 +5360,45 @@ public interface SoftwarePackageOrBuilder */ com.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageOrBuilder getCosPackageOrBuilder(); + /** + * + * + *
+     * Details of Windows Application.
+     * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + * + * @return Whether the windowsApplication field is set. + */ + boolean hasWindowsApplication(); + /** + * + * + *
+     * Details of Windows Application.
+     * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + * + * @return The windowsApplication. + */ + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication getWindowsApplication(); + /** + * + * + *
+     * Details of Windows Application.
+     * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationOrBuilder + getWindowsApplicationOrBuilder(); + public com.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage.DetailsCase getDetailsCase(); } /** @@ -5585,6 +5624,27 @@ private SoftwarePackage( detailsCase_ = 8; break; } + case 74: + { + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.Builder subBuilder = + null; + if (detailsCase_ == 9) { + subBuilder = + ((com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 9; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -5634,6 +5694,7 @@ public enum DetailsCase WUA_PACKAGE(6), QFE_PACKAGE(7), COS_PACKAGE(8), + WINDOWS_APPLICATION(9), DETAILS_NOT_SET(0); private final int value; @@ -5668,6 +5729,8 @@ public static DetailsCase forNumber(int value) { return QFE_PACKAGE; case 8: return COS_PACKAGE; + case 9: + return WINDOWS_APPLICATION; case 0: return DETAILS_NOT_SET; default: @@ -6156,6 +6219,61 @@ public com.google.cloud.osconfig.v1alpha.Inventory.VersionedPackage getCosPackag return com.google.cloud.osconfig.v1alpha.Inventory.VersionedPackage.getDefaultInstance(); } + public static final int WINDOWS_APPLICATION_FIELD_NUMBER = 9; + /** + * + * + *
+     * Details of Windows Application.
+     * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + * + * @return Whether the windowsApplication field is set. + */ + @java.lang.Override + public boolean hasWindowsApplication() { + return detailsCase_ == 9; + } + /** + * + * + *
+     * Details of Windows Application.
+     * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + * + * @return The windowsApplication. + */ + @java.lang.Override + public com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication getWindowsApplication() { + if (detailsCase_ == 9) { + return (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_; + } + return com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.getDefaultInstance(); + } + /** + * + * + *
+     * Details of Windows Application.
+     * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + @java.lang.Override + public com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationOrBuilder + getWindowsApplicationOrBuilder() { + if (detailsCase_ == 9) { + return (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_; + } + return com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6203,6 +6321,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 8, (com.google.cloud.osconfig.v1alpha.Inventory.VersionedPackage) details_); } + if (detailsCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_); + } unknownFields.writeTo(output); } @@ -6254,6 +6376,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.cloud.osconfig.v1alpha.Inventory.VersionedPackage) details_); } + if (detailsCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -6296,6 +6423,9 @@ public boolean equals(final java.lang.Object obj) { case 8: if (!getCosPackage().equals(other.getCosPackage())) return false; break; + case 9: + if (!getWindowsApplication().equals(other.getWindowsApplication())) return false; + break; case 0: default: } @@ -6343,6 +6473,10 @@ public int hashCode() { hash = (37 * hash) + COS_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getCosPackage().hashCode(); break; + case 9: + hash = (37 * hash) + WINDOWS_APPLICATION_FIELD_NUMBER; + hash = (53 * hash) + getWindowsApplication().hashCode(); + break; case 0: default: } @@ -6580,6 +6714,13 @@ public com.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage buildPartial( result.details_ = cosPackageBuilder_.build(); } } + if (detailsCase_ == 9) { + if (windowsApplicationBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = windowsApplicationBuilder_.build(); + } + } result.detailsCase_ = detailsCase_; onBuilt(); return result; @@ -6675,6 +6816,11 @@ public Builder mergeFrom(com.google.cloud.osconfig.v1alpha.Inventory.SoftwarePac mergeCosPackage(other.getCosPackage()); break; } + case WINDOWS_APPLICATION: + { + mergeWindowsApplication(other.getWindowsApplication()); + break; + } case DETAILS_NOT_SET: { break; @@ -8624,6 +8770,235 @@ public Builder clearCosPackage() { return cosPackageBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication, + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.Builder, + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationOrBuilder> + windowsApplicationBuilder_; + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + * + * @return Whether the windowsApplication field is set. + */ + @java.lang.Override + public boolean hasWindowsApplication() { + return detailsCase_ == 9; + } + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + * + * @return The windowsApplication. + */ + @java.lang.Override + public com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication + getWindowsApplication() { + if (windowsApplicationBuilder_ == null) { + if (detailsCase_ == 9) { + return (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_; + } + return com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication + .getDefaultInstance(); + } else { + if (detailsCase_ == 9) { + return windowsApplicationBuilder_.getMessage(); + } + return com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + public Builder setWindowsApplication( + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication value) { + if (windowsApplicationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + windowsApplicationBuilder_.setMessage(value); + } + detailsCase_ = 9; + return this; + } + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + public Builder setWindowsApplication( + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.Builder builderForValue) { + if (windowsApplicationBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + windowsApplicationBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 9; + return this; + } + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + public Builder mergeWindowsApplication( + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication value) { + if (windowsApplicationBuilder_ == null) { + if (detailsCase_ == 9 + && details_ + != com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication + .getDefaultInstance()) { + details_ = + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.newBuilder( + (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 9) { + windowsApplicationBuilder_.mergeFrom(value); + } + windowsApplicationBuilder_.setMessage(value); + } + detailsCase_ = 9; + return this; + } + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + public Builder clearWindowsApplication() { + if (windowsApplicationBuilder_ == null) { + if (detailsCase_ == 9) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 9) { + detailsCase_ = 0; + details_ = null; + } + windowsApplicationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + public com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.Builder + getWindowsApplicationBuilder() { + return getWindowsApplicationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + @java.lang.Override + public com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationOrBuilder + getWindowsApplicationOrBuilder() { + if ((detailsCase_ == 9) && (windowsApplicationBuilder_ != null)) { + return windowsApplicationBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 9) { + return (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_; + } + return com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Details of Windows Application.
+       * 
+ * + * .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication, + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.Builder, + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationOrBuilder> + getWindowsApplicationFieldBuilder() { + if (windowsApplicationBuilder_ == null) { + if (!(detailsCase_ == 9)) { + details_ = + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.getDefaultInstance(); + } + windowsApplicationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication, + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.Builder, + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationOrBuilder>( + (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 9; + onChanged(); + ; + return windowsApplicationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16420,6 +16795,1614 @@ public com.google.protobuf.Parser getParserFo } } + public interface WindowsApplicationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the application or product.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+     * The name of the application or product.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * The version of the product or application in string format.
+     * 
+ * + * string display_version = 2; + * + * @return The displayVersion. + */ + java.lang.String getDisplayVersion(); + /** + * + * + *
+     * The version of the product or application in string format.
+     * 
+ * + * string display_version = 2; + * + * @return The bytes for displayVersion. + */ + com.google.protobuf.ByteString getDisplayVersionBytes(); + + /** + * + * + *
+     * The name of the manufacturer for the product or application.
+     * 
+ * + * string publisher = 3; + * + * @return The publisher. + */ + java.lang.String getPublisher(); + /** + * + * + *
+     * The name of the manufacturer for the product or application.
+     * 
+ * + * string publisher = 3; + * + * @return The bytes for publisher. + */ + com.google.protobuf.ByteString getPublisherBytes(); + + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + * + * @return Whether the installDate field is set. + */ + boolean hasInstallDate(); + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + * + * @return The installDate. + */ + com.google.type.Date getInstallDate(); + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + */ + com.google.type.DateOrBuilder getInstallDateOrBuilder(); + + /** + * + * + *
+     * The internet address for technical support.
+     * 
+ * + * string help_link = 5; + * + * @return The helpLink. + */ + java.lang.String getHelpLink(); + /** + * + * + *
+     * The internet address for technical support.
+     * 
+ * + * string help_link = 5; + * + * @return The bytes for helpLink. + */ + com.google.protobuf.ByteString getHelpLinkBytes(); + } + /** + * + * + *
+   * Contains information about a Windows application as retrieved from the
+   * Windows Registry. For more information about these fields, see
+   * [Windows Installer Properties for the Uninstall
+   * Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
+   * class="external" }
+   * 
+ * + * Protobuf type {@code google.cloud.osconfig.v1alpha.Inventory.WindowsApplication} + */ + public static final class WindowsApplication extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) + WindowsApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use WindowsApplication.newBuilder() to construct. + private WindowsApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WindowsApplication() { + displayName_ = ""; + displayVersion_ = ""; + publisher_ = ""; + helpLink_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WindowsApplication(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WindowsApplication( + 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(); + + displayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayVersion_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + publisher_ = s; + break; + } + case 34: + { + com.google.type.Date.Builder subBuilder = null; + if (installDate_ != null) { + subBuilder = installDate_.toBuilder(); + } + installDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(installDate_); + installDate_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + helpLink_ = 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.v1alpha.Inventories + .internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1alpha.Inventories + .internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.class, + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+     * The name of the application or product.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the application or product.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object displayVersion_; + /** + * + * + *
+     * The version of the product or application in string format.
+     * 
+ * + * string display_version = 2; + * + * @return The displayVersion. + */ + @java.lang.Override + public java.lang.String getDisplayVersion() { + java.lang.Object ref = displayVersion_; + 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(); + displayVersion_ = s; + return s; + } + } + /** + * + * + *
+     * The version of the product or application in string format.
+     * 
+ * + * string display_version = 2; + * + * @return The bytes for displayVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayVersionBytes() { + java.lang.Object ref = displayVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLISHER_FIELD_NUMBER = 3; + private volatile java.lang.Object publisher_; + /** + * + * + *
+     * The name of the manufacturer for the product or application.
+     * 
+ * + * string publisher = 3; + * + * @return The publisher. + */ + @java.lang.Override + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + 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(); + publisher_ = s; + return s; + } + } + /** + * + * + *
+     * The name of the manufacturer for the product or application.
+     * 
+ * + * string publisher = 3; + * + * @return The bytes for publisher. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTALL_DATE_FIELD_NUMBER = 4; + private com.google.type.Date installDate_; + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + * + * @return Whether the installDate field is set. + */ + @java.lang.Override + public boolean hasInstallDate() { + return installDate_ != null; + } + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + * + * @return The installDate. + */ + @java.lang.Override + public com.google.type.Date getInstallDate() { + return installDate_ == null ? com.google.type.Date.getDefaultInstance() : installDate_; + } + /** + * + * + *
+     * The last time this product received service. The value of this property
+     * is replaced each time a patch is applied or removed from the product or
+     * the command-line option is used to repair the product.
+     * 
+ * + * .google.type.Date install_date = 4; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getInstallDateOrBuilder() { + return getInstallDate(); + } + + public static final int HELP_LINK_FIELD_NUMBER = 5; + private volatile java.lang.Object helpLink_; + /** + * + * + *
+     * The internet address for technical support.
+     * 
+ * + * string help_link = 5; + * + * @return The helpLink. + */ + @java.lang.Override + public java.lang.String getHelpLink() { + java.lang.Object ref = helpLink_; + 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(); + helpLink_ = s; + return s; + } + } + /** + * + * + *
+     * The internet address for technical support.
+     * 
+ * + * string help_link = 5; + * + * @return The bytes for helpLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHelpLinkBytes() { + java.lang.Object ref = helpLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + helpLink_ = 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 (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!getDisplayVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayVersion_); + } + if (!getPublisherBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publisher_); + } + if (installDate_ != null) { + output.writeMessage(4, getInstallDate()); + } + if (!getHelpLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, helpLink_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!getDisplayVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayVersion_); + } + if (!getPublisherBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publisher_); + } + if (installDate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInstallDate()); + } + if (!getHelpLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, helpLink_); + } + 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.v1alpha.Inventory.WindowsApplication)) { + return super.equals(obj); + } + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication other = + (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayVersion().equals(other.getDisplayVersion())) return false; + if (!getPublisher().equals(other.getPublisher())) return false; + if (hasInstallDate() != other.hasInstallDate()) return false; + if (hasInstallDate()) { + if (!getInstallDate().equals(other.getInstallDate())) return false; + } + if (!getHelpLink().equals(other.getHelpLink())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DISPLAY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVersion().hashCode(); + hash = (37 * hash) + PUBLISHER_FIELD_NUMBER; + hash = (53 * hash) + getPublisher().hashCode(); + if (hasInstallDate()) { + hash = (37 * hash) + INSTALL_DATE_FIELD_NUMBER; + hash = (53 * hash) + getInstallDate().hashCode(); + } + hash = (37 * hash) + HELP_LINK_FIELD_NUMBER; + hash = (53 * hash) + getHelpLink().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication 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.v1alpha.Inventory.WindowsApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication 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.v1alpha.Inventory.WindowsApplication parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication 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.v1alpha.Inventory.WindowsApplication parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication 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.v1alpha.Inventory.WindowsApplication parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication 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.v1alpha.Inventory.WindowsApplication 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; + } + /** + * + * + *
+     * Contains information about a Windows application as retrieved from the
+     * Windows Registry. For more information about these fields, see
+     * [Windows Installer Properties for the Uninstall
+     * Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
+     * class="external" }
+     * 
+ * + * Protobuf type {@code google.cloud.osconfig.v1alpha.Inventory.WindowsApplication} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.osconfig.v1alpha.Inventories + .internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.osconfig.v1alpha.Inventories + .internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.class, + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.Builder.class); + } + + // Construct using com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.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(); + displayName_ = ""; + + displayVersion_ = ""; + + publisher_ = ""; + + if (installDateBuilder_ == null) { + installDate_ = null; + } else { + installDate_ = null; + installDateBuilder_ = null; + } + helpLink_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.osconfig.v1alpha.Inventories + .internal_static_google_cloud_osconfig_v1alpha_Inventory_WindowsApplication_descriptor; + } + + @java.lang.Override + public com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication + getDefaultInstanceForType() { + return com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication build() { + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication buildPartial() { + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication result = + new com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication(this); + result.displayName_ = displayName_; + result.displayVersion_ = displayVersion_; + result.publisher_ = publisher_; + if (installDateBuilder_ == null) { + result.installDate_ = installDate_; + } else { + result.installDate_ = installDateBuilder_.build(); + } + result.helpLink_ = helpLink_; + 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.v1alpha.Inventory.WindowsApplication) { + return mergeFrom((com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication other) { + if (other + == com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDisplayVersion().isEmpty()) { + displayVersion_ = other.displayVersion_; + onChanged(); + } + if (!other.getPublisher().isEmpty()) { + publisher_ = other.publisher_; + onChanged(); + } + if (other.hasInstallDate()) { + mergeInstallDate(other.getInstallDate()); + } + if (!other.getHelpLink().isEmpty()) { + helpLink_ = other.helpLink_; + 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.v1alpha.Inventory.WindowsApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the application or product.
+       * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayVersion_ = ""; + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @return The displayVersion. + */ + public java.lang.String getDisplayVersion() { + java.lang.Object ref = displayVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @return The bytes for displayVersion. + */ + public com.google.protobuf.ByteString getDisplayVersionBytes() { + java.lang.Object ref = displayVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @param value The displayVersion to set. + * @return This builder for chaining. + */ + public Builder setDisplayVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayVersion() { + + displayVersion_ = getDefaultInstance().getDisplayVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The version of the product or application in string format.
+       * 
+ * + * string display_version = 2; + * + * @param value The bytes for displayVersion to set. + * @return This builder for chaining. + */ + public Builder setDisplayVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object publisher_ = ""; + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @return The publisher. + */ + public java.lang.String getPublisher() { + java.lang.Object ref = publisher_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publisher_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @return The bytes for publisher. + */ + public com.google.protobuf.ByteString getPublisherBytes() { + java.lang.Object ref = publisher_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publisher_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @param value The publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisher(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publisher_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @return This builder for chaining. + */ + public Builder clearPublisher() { + + publisher_ = getDefaultInstance().getPublisher(); + onChanged(); + return this; + } + /** + * + * + *
+       * The name of the manufacturer for the product or application.
+       * 
+ * + * string publisher = 3; + * + * @param value The bytes for publisher to set. + * @return This builder for chaining. + */ + public Builder setPublisherBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publisher_ = value; + onChanged(); + return this; + } + + private com.google.type.Date installDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + installDateBuilder_; + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + * + * @return Whether the installDate field is set. + */ + public boolean hasInstallDate() { + return installDateBuilder_ != null || installDate_ != null; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + * + * @return The installDate. + */ + public com.google.type.Date getInstallDate() { + if (installDateBuilder_ == null) { + return installDate_ == null ? com.google.type.Date.getDefaultInstance() : installDate_; + } else { + return installDateBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public Builder setInstallDate(com.google.type.Date value) { + if (installDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + installDate_ = value; + onChanged(); + } else { + installDateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public Builder setInstallDate(com.google.type.Date.Builder builderForValue) { + if (installDateBuilder_ == null) { + installDate_ = builderForValue.build(); + onChanged(); + } else { + installDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public Builder mergeInstallDate(com.google.type.Date value) { + if (installDateBuilder_ == null) { + if (installDate_ != null) { + installDate_ = + com.google.type.Date.newBuilder(installDate_).mergeFrom(value).buildPartial(); + } else { + installDate_ = value; + } + onChanged(); + } else { + installDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public Builder clearInstallDate() { + if (installDateBuilder_ == null) { + installDate_ = null; + onChanged(); + } else { + installDate_ = null; + installDateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public com.google.type.Date.Builder getInstallDateBuilder() { + + onChanged(); + return getInstallDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + public com.google.type.DateOrBuilder getInstallDateOrBuilder() { + if (installDateBuilder_ != null) { + return installDateBuilder_.getMessageOrBuilder(); + } else { + return installDate_ == null ? com.google.type.Date.getDefaultInstance() : installDate_; + } + } + /** + * + * + *
+       * The last time this product received service. The value of this property
+       * is replaced each time a patch is applied or removed from the product or
+       * the command-line option is used to repair the product.
+       * 
+ * + * .google.type.Date install_date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getInstallDateFieldBuilder() { + if (installDateBuilder_ == null) { + installDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, + com.google.type.Date.Builder, + com.google.type.DateOrBuilder>( + getInstallDate(), getParentForChildren(), isClean()); + installDate_ = null; + } + return installDateBuilder_; + } + + private java.lang.Object helpLink_ = ""; + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @return The helpLink. + */ + public java.lang.String getHelpLink() { + java.lang.Object ref = helpLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + helpLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @return The bytes for helpLink. + */ + public com.google.protobuf.ByteString getHelpLinkBytes() { + java.lang.Object ref = helpLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + helpLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @param value The helpLink to set. + * @return This builder for chaining. + */ + public Builder setHelpLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + helpLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @return This builder for chaining. + */ + public Builder clearHelpLink() { + + helpLink_ = getDefaultInstance().getHelpLink(); + onChanged(); + return this; + } + /** + * + * + *
+       * The internet address for technical support.
+       * 
+ * + * string help_link = 5; + * + * @param value The bytes for helpLink to set. + * @return This builder for chaining. + */ + public Builder setHelpLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + helpLink_ = 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.v1alpha.Inventory.WindowsApplication) + } + + // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.Inventory.WindowsApplication) + private static final com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication(); + } + + public static com.google.cloud.osconfig.v1alpha.Inventory.WindowsApplication + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WindowsApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WindowsApplication(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.v1alpha.Inventory.WindowsApplication + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** @@ -16564,10 +18547,10 @@ public int getItemsCount() { * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * @@ -16592,10 +18575,10 @@ public boolean containsItems(java.lang.String key) { * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * @@ -16611,10 +18594,10 @@ public boolean containsItems(java.lang.String key) { * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * @@ -16635,10 +18618,10 @@ public com.google.cloud.osconfig.v1alpha.Inventory.Item getItemsOrDefault( * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * @@ -17483,10 +19466,10 @@ public int getItemsCount() { * * *
-     * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-     * each inventory item. The identifier is unique to each distinct and
-     * addressable inventory item and will change, when there is a new package
-     * version.
+     * Output only. Inventory items related to the VM keyed by an opaque unique
+     * identifier for each inventory item. The identifier is unique to each
+     * distinct and addressable inventory item and will change, when there is a
+     * new package version.
      * 
* * @@ -17511,10 +19494,10 @@ public boolean containsItems(java.lang.String key) { * * *
-     * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-     * each inventory item. The identifier is unique to each distinct and
-     * addressable inventory item and will change, when there is a new package
-     * version.
+     * Output only. Inventory items related to the VM keyed by an opaque unique
+     * identifier for each inventory item. The identifier is unique to each
+     * distinct and addressable inventory item and will change, when there is a
+     * new package version.
      * 
* * @@ -17530,10 +19513,10 @@ public boolean containsItems(java.lang.String key) { * * *
-     * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-     * each inventory item. The identifier is unique to each distinct and
-     * addressable inventory item and will change, when there is a new package
-     * version.
+     * Output only. Inventory items related to the VM keyed by an opaque unique
+     * identifier for each inventory item. The identifier is unique to each
+     * distinct and addressable inventory item and will change, when there is a
+     * new package version.
      * 
* * @@ -17554,10 +19537,10 @@ public com.google.cloud.osconfig.v1alpha.Inventory.Item getItemsOrDefault( * * *
-     * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-     * each inventory item. The identifier is unique to each distinct and
-     * addressable inventory item and will change, when there is a new package
-     * version.
+     * Output only. Inventory items related to the VM keyed by an opaque unique
+     * identifier for each inventory item. The identifier is unique to each
+     * distinct and addressable inventory item and will change, when there is a
+     * new package version.
      * 
* * @@ -17585,10 +19568,10 @@ public Builder clearItems() { * * *
-     * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-     * each inventory item. The identifier is unique to each distinct and
-     * addressable inventory item and will change, when there is a new package
-     * version.
+     * Output only. Inventory items related to the VM keyed by an opaque unique
+     * identifier for each inventory item. The identifier is unique to each
+     * distinct and addressable inventory item and will change, when there is a
+     * new package version.
      * 
* * @@ -17612,10 +19595,10 @@ public Builder removeItems(java.lang.String key) { * * *
-     * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-     * each inventory item. The identifier is unique to each distinct and
-     * addressable inventory item and will change, when there is a new package
-     * version.
+     * Output only. Inventory items related to the VM keyed by an opaque unique
+     * identifier for each inventory item. The identifier is unique to each
+     * distinct and addressable inventory item and will change, when there is a
+     * new package version.
      * 
* * @@ -17637,10 +19620,10 @@ public Builder putItems( * * *
-     * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-     * each inventory item. The identifier is unique to each distinct and
-     * addressable inventory item and will change, when there is a new package
-     * version.
+     * Output only. Inventory items related to the VM keyed by an opaque unique
+     * identifier for each inventory item. The identifier is unique to each
+     * distinct and addressable inventory item and will change, when there is a
+     * new package version.
      * 
* * diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryOrBuilder.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryOrBuilder.java index f2e83551..4bded6fd 100644 --- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryOrBuilder.java +++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryOrBuilder.java @@ -97,10 +97,10 @@ public interface InventoryOrBuilder * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * @@ -112,10 +112,10 @@ public interface InventoryOrBuilder * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * @@ -130,10 +130,10 @@ public interface InventoryOrBuilder * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * @@ -145,10 +145,10 @@ public interface InventoryOrBuilder * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * @@ -161,10 +161,10 @@ com.google.cloud.osconfig.v1alpha.Inventory.Item getItemsOrDefault( * * *
-   * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
-   * each inventory item. The identifier is unique to each distinct and
-   * addressable inventory item and will change, when there is a new package
-   * version.
+   * Output only. Inventory items related to the VM keyed by an opaque unique
+   * identifier for each inventory item. The identifier is unique to each
+   * distinct and addressable inventory item and will change, when there is a
+   * new package version.
    * 
* * diff --git a/proto-google-cloud-os-config-v1alpha/src/main/proto/google/cloud/osconfig/v1alpha/inventory.proto b/proto-google-cloud-os-config-v1alpha/src/main/proto/google/cloud/osconfig/v1alpha/inventory.proto index 38e12f94..f9ad221e 100644 --- a/proto-google-cloud-os-config-v1alpha/src/main/proto/google/cloud/osconfig/v1alpha/inventory.proto +++ b/proto-google-cloud-os-config-v1alpha/src/main/proto/google/cloud/osconfig/v1alpha/inventory.proto @@ -19,6 +19,7 @@ package google.cloud.osconfig.v1alpha; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; +import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; @@ -165,6 +166,9 @@ message Inventory { // Details of a COS package. VersionedPackage cos_package = 8; + + // Details of Windows Application. + WindowsApplication windows_application = 9; } } @@ -260,6 +264,31 @@ message Inventory { google.protobuf.Timestamp install_time = 5; } + // Contains information about a Windows application as retrieved from the + // Windows Registry. For more information about these fields, see + // + // [Windows Installer Properties for the Uninstall + // Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){: + // class="external" } + message WindowsApplication { + // The name of the application or product. + string display_name = 1; + + // The version of the product or application in string format. + string display_version = 2; + + // The name of the manufacturer for the product or application. + string publisher = 3; + + // The last time this product received service. The value of this property + // is replaced each time a patch is applied or removed from the product or + // the command-line option is used to repair the product. + google.type.Date install_date = 4; + + // The internet address for technical support. + string help_link = 5; + } + // Output only. The `Inventory` API resource name. // // Format: @@ -269,14 +298,15 @@ message Inventory { // Output only. Base level operating system information for the VM. OsInfo os_info = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Inventory items related to the VM keyed by an opaque unique identifier for - // each inventory item. The identifier is unique to each distinct and - // addressable inventory item and will change, when there is a new package - // version. + // Output only. Inventory items related to the VM keyed by an opaque unique + // identifier for each inventory item. The identifier is unique to each + // distinct and addressable inventory item and will change, when there is a + // new package version. map items = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp of the last reported inventory for the VM. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A request message for getting inventory data for the specified VM.