@@ -223,6 +223,22 @@ private Asset(
223
223
updateTime_ = subBuilder .buildPartial ();
224
224
}
225
225
226
+ break ;
227
+ }
228
+ case 98 :
229
+ {
230
+ com .google .cloud .osconfig .v1 .Inventory .Builder subBuilder = null ;
231
+ if (osInventory_ != null ) {
232
+ subBuilder = osInventory_ .toBuilder ();
233
+ }
234
+ osInventory_ =
235
+ input .readMessage (
236
+ com .google .cloud .osconfig .v1 .Inventory .parser (), extensionRegistry );
237
+ if (subBuilder != null ) {
238
+ subBuilder .mergeFrom (osInventory_ );
239
+ osInventory_ = subBuilder .buildPartial ();
240
+ }
241
+
226
242
break ;
227
243
}
228
244
default :
@@ -840,6 +856,60 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
840
856
return com .google .identity .accesscontextmanager .v1 .ServicePerimeter .getDefaultInstance ();
841
857
}
842
858
859
+ public static final int OS_INVENTORY_FIELD_NUMBER = 12 ;
860
+ private com .google .cloud .osconfig .v1 .Inventory osInventory_ ;
861
+ /**
862
+ *
863
+ *
864
+ * <pre>
865
+ * A representation of runtime OS Inventory information. See [this
866
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
867
+ * for more information.
868
+ * </pre>
869
+ *
870
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
871
+ *
872
+ * @return Whether the osInventory field is set.
873
+ */
874
+ @ java .lang .Override
875
+ public boolean hasOsInventory () {
876
+ return osInventory_ != null ;
877
+ }
878
+ /**
879
+ *
880
+ *
881
+ * <pre>
882
+ * A representation of runtime OS Inventory information. See [this
883
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
884
+ * for more information.
885
+ * </pre>
886
+ *
887
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
888
+ *
889
+ * @return The osInventory.
890
+ */
891
+ @ java .lang .Override
892
+ public com .google .cloud .osconfig .v1 .Inventory getOsInventory () {
893
+ return osInventory_ == null
894
+ ? com .google .cloud .osconfig .v1 .Inventory .getDefaultInstance ()
895
+ : osInventory_ ;
896
+ }
897
+ /**
898
+ *
899
+ *
900
+ * <pre>
901
+ * A representation of runtime OS Inventory information. See [this
902
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
903
+ * for more information.
904
+ * </pre>
905
+ *
906
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
907
+ */
908
+ @ java .lang .Override
909
+ public com .google .cloud .osconfig .v1 .InventoryOrBuilder getOsInventoryOrBuilder () {
910
+ return getOsInventory ();
911
+ }
912
+
843
913
public static final int ANCESTORS_FIELD_NUMBER = 10 ;
844
914
private com .google .protobuf .LazyStringList ancestors_ ;
845
915
/**
@@ -972,6 +1042,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
972
1042
if (updateTime_ != null ) {
973
1043
output .writeMessage (11 , getUpdateTime ());
974
1044
}
1045
+ if (osInventory_ != null ) {
1046
+ output .writeMessage (12 , getOsInventory ());
1047
+ }
975
1048
unknownFields .writeTo (output );
976
1049
}
977
1050
@@ -1023,6 +1096,9 @@ public int getSerializedSize() {
1023
1096
if (updateTime_ != null ) {
1024
1097
size += com .google .protobuf .CodedOutputStream .computeMessageSize (11 , getUpdateTime ());
1025
1098
}
1099
+ if (osInventory_ != null ) {
1100
+ size += com .google .protobuf .CodedOutputStream .computeMessageSize (12 , getOsInventory ());
1101
+ }
1026
1102
size += unknownFields .getSerializedSize ();
1027
1103
memoizedSize = size ;
1028
1104
return size ;
@@ -1053,6 +1129,10 @@ public boolean equals(final java.lang.Object obj) {
1053
1129
if (!getIamPolicy ().equals (other .getIamPolicy ())) return false ;
1054
1130
}
1055
1131
if (!getOrgPolicyList ().equals (other .getOrgPolicyList ())) return false ;
1132
+ if (hasOsInventory () != other .hasOsInventory ()) return false ;
1133
+ if (hasOsInventory ()) {
1134
+ if (!getOsInventory ().equals (other .getOsInventory ())) return false ;
1135
+ }
1056
1136
if (!getAncestorsList ().equals (other .getAncestorsList ())) return false ;
1057
1137
if (!getAccessContextPolicyCase ().equals (other .getAccessContextPolicyCase ())) return false ;
1058
1138
switch (accessContextPolicyCase_ ) {
@@ -1099,6 +1179,10 @@ public int hashCode() {
1099
1179
hash = (37 * hash ) + ORG_POLICY_FIELD_NUMBER ;
1100
1180
hash = (53 * hash ) + getOrgPolicyList ().hashCode ();
1101
1181
}
1182
+ if (hasOsInventory ()) {
1183
+ hash = (37 * hash ) + OS_INVENTORY_FIELD_NUMBER ;
1184
+ hash = (53 * hash ) + getOsInventory ().hashCode ();
1185
+ }
1102
1186
if (getAncestorsCount () > 0 ) {
1103
1187
hash = (37 * hash ) + ANCESTORS_FIELD_NUMBER ;
1104
1188
hash = (53 * hash ) + getAncestorsList ().hashCode ();
@@ -1299,6 +1383,12 @@ public Builder clear() {
1299
1383
} else {
1300
1384
orgPolicyBuilder_ .clear ();
1301
1385
}
1386
+ if (osInventoryBuilder_ == null ) {
1387
+ osInventory_ = null ;
1388
+ } else {
1389
+ osInventory_ = null ;
1390
+ osInventoryBuilder_ = null ;
1391
+ }
1302
1392
ancestors_ = com .google .protobuf .LazyStringArrayList .EMPTY ;
1303
1393
bitField0_ = (bitField0_ & ~0x00000002 );
1304
1394
accessContextPolicyCase_ = 0 ;
@@ -1377,6 +1467,11 @@ public com.google.cloud.asset.v1.Asset buildPartial() {
1377
1467
result .accessContextPolicy_ = servicePerimeterBuilder_ .build ();
1378
1468
}
1379
1469
}
1470
+ if (osInventoryBuilder_ == null ) {
1471
+ result .osInventory_ = osInventory_ ;
1472
+ } else {
1473
+ result .osInventory_ = osInventoryBuilder_ .build ();
1474
+ }
1380
1475
if (((bitField0_ & 0x00000002 ) != 0 )) {
1381
1476
ancestors_ = ancestors_ .getUnmodifiableView ();
1382
1477
bitField0_ = (bitField0_ & ~0x00000002 );
@@ -1476,6 +1571,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Asset other) {
1476
1571
}
1477
1572
}
1478
1573
}
1574
+ if (other .hasOsInventory ()) {
1575
+ mergeOsInventory (other .getOsInventory ());
1576
+ }
1479
1577
if (!other .ancestors_ .isEmpty ()) {
1480
1578
if (ancestors_ .isEmpty ()) {
1481
1579
ancestors_ = other .ancestors_ ;
@@ -3503,6 +3601,209 @@ public Builder clearServicePerimeter() {
3503
3601
return servicePerimeterBuilder_ ;
3504
3602
}
3505
3603
3604
+ private com .google .cloud .osconfig .v1 .Inventory osInventory_ ;
3605
+ private com .google .protobuf .SingleFieldBuilderV3 <
3606
+ com .google .cloud .osconfig .v1 .Inventory ,
3607
+ com .google .cloud .osconfig .v1 .Inventory .Builder ,
3608
+ com .google .cloud .osconfig .v1 .InventoryOrBuilder >
3609
+ osInventoryBuilder_ ;
3610
+ /**
3611
+ *
3612
+ *
3613
+ * <pre>
3614
+ * A representation of runtime OS Inventory information. See [this
3615
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3616
+ * for more information.
3617
+ * </pre>
3618
+ *
3619
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3620
+ *
3621
+ * @return Whether the osInventory field is set.
3622
+ */
3623
+ public boolean hasOsInventory () {
3624
+ return osInventoryBuilder_ != null || osInventory_ != null ;
3625
+ }
3626
+ /**
3627
+ *
3628
+ *
3629
+ * <pre>
3630
+ * A representation of runtime OS Inventory information. See [this
3631
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3632
+ * for more information.
3633
+ * </pre>
3634
+ *
3635
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3636
+ *
3637
+ * @return The osInventory.
3638
+ */
3639
+ public com .google .cloud .osconfig .v1 .Inventory getOsInventory () {
3640
+ if (osInventoryBuilder_ == null ) {
3641
+ return osInventory_ == null
3642
+ ? com .google .cloud .osconfig .v1 .Inventory .getDefaultInstance ()
3643
+ : osInventory_ ;
3644
+ } else {
3645
+ return osInventoryBuilder_ .getMessage ();
3646
+ }
3647
+ }
3648
+ /**
3649
+ *
3650
+ *
3651
+ * <pre>
3652
+ * A representation of runtime OS Inventory information. See [this
3653
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3654
+ * for more information.
3655
+ * </pre>
3656
+ *
3657
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3658
+ */
3659
+ public Builder setOsInventory (com .google .cloud .osconfig .v1 .Inventory value ) {
3660
+ if (osInventoryBuilder_ == null ) {
3661
+ if (value == null ) {
3662
+ throw new NullPointerException ();
3663
+ }
3664
+ osInventory_ = value ;
3665
+ onChanged ();
3666
+ } else {
3667
+ osInventoryBuilder_ .setMessage (value );
3668
+ }
3669
+
3670
+ return this ;
3671
+ }
3672
+ /**
3673
+ *
3674
+ *
3675
+ * <pre>
3676
+ * A representation of runtime OS Inventory information. See [this
3677
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3678
+ * for more information.
3679
+ * </pre>
3680
+ *
3681
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3682
+ */
3683
+ public Builder setOsInventory (com .google .cloud .osconfig .v1 .Inventory .Builder builderForValue ) {
3684
+ if (osInventoryBuilder_ == null ) {
3685
+ osInventory_ = builderForValue .build ();
3686
+ onChanged ();
3687
+ } else {
3688
+ osInventoryBuilder_ .setMessage (builderForValue .build ());
3689
+ }
3690
+
3691
+ return this ;
3692
+ }
3693
+ /**
3694
+ *
3695
+ *
3696
+ * <pre>
3697
+ * A representation of runtime OS Inventory information. See [this
3698
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3699
+ * for more information.
3700
+ * </pre>
3701
+ *
3702
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3703
+ */
3704
+ public Builder mergeOsInventory (com .google .cloud .osconfig .v1 .Inventory value ) {
3705
+ if (osInventoryBuilder_ == null ) {
3706
+ if (osInventory_ != null ) {
3707
+ osInventory_ =
3708
+ com .google .cloud .osconfig .v1 .Inventory .newBuilder (osInventory_ )
3709
+ .mergeFrom (value )
3710
+ .buildPartial ();
3711
+ } else {
3712
+ osInventory_ = value ;
3713
+ }
3714
+ onChanged ();
3715
+ } else {
3716
+ osInventoryBuilder_ .mergeFrom (value );
3717
+ }
3718
+
3719
+ return this ;
3720
+ }
3721
+ /**
3722
+ *
3723
+ *
3724
+ * <pre>
3725
+ * A representation of runtime OS Inventory information. See [this
3726
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3727
+ * for more information.
3728
+ * </pre>
3729
+ *
3730
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3731
+ */
3732
+ public Builder clearOsInventory () {
3733
+ if (osInventoryBuilder_ == null ) {
3734
+ osInventory_ = null ;
3735
+ onChanged ();
3736
+ } else {
3737
+ osInventory_ = null ;
3738
+ osInventoryBuilder_ = null ;
3739
+ }
3740
+
3741
+ return this ;
3742
+ }
3743
+ /**
3744
+ *
3745
+ *
3746
+ * <pre>
3747
+ * A representation of runtime OS Inventory information. See [this
3748
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3749
+ * for more information.
3750
+ * </pre>
3751
+ *
3752
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3753
+ */
3754
+ public com .google .cloud .osconfig .v1 .Inventory .Builder getOsInventoryBuilder () {
3755
+
3756
+ onChanged ();
3757
+ return getOsInventoryFieldBuilder ().getBuilder ();
3758
+ }
3759
+ /**
3760
+ *
3761
+ *
3762
+ * <pre>
3763
+ * A representation of runtime OS Inventory information. See [this
3764
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3765
+ * for more information.
3766
+ * </pre>
3767
+ *
3768
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3769
+ */
3770
+ public com .google .cloud .osconfig .v1 .InventoryOrBuilder getOsInventoryOrBuilder () {
3771
+ if (osInventoryBuilder_ != null ) {
3772
+ return osInventoryBuilder_ .getMessageOrBuilder ();
3773
+ } else {
3774
+ return osInventory_ == null
3775
+ ? com .google .cloud .osconfig .v1 .Inventory .getDefaultInstance ()
3776
+ : osInventory_ ;
3777
+ }
3778
+ }
3779
+ /**
3780
+ *
3781
+ *
3782
+ * <pre>
3783
+ * A representation of runtime OS Inventory information. See [this
3784
+ * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
3785
+ * for more information.
3786
+ * </pre>
3787
+ *
3788
+ * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
3789
+ */
3790
+ private com .google .protobuf .SingleFieldBuilderV3 <
3791
+ com .google .cloud .osconfig .v1 .Inventory ,
3792
+ com .google .cloud .osconfig .v1 .Inventory .Builder ,
3793
+ com .google .cloud .osconfig .v1 .InventoryOrBuilder >
3794
+ getOsInventoryFieldBuilder () {
3795
+ if (osInventoryBuilder_ == null ) {
3796
+ osInventoryBuilder_ =
3797
+ new com .google .protobuf .SingleFieldBuilderV3 <
3798
+ com .google .cloud .osconfig .v1 .Inventory ,
3799
+ com .google .cloud .osconfig .v1 .Inventory .Builder ,
3800
+ com .google .cloud .osconfig .v1 .InventoryOrBuilder >(
3801
+ getOsInventory (), getParentForChildren (), isClean ());
3802
+ osInventory_ = null ;
3803
+ }
3804
+ return osInventoryBuilder_ ;
3805
+ }
3806
+
3506
3807
private com .google .protobuf .LazyStringList ancestors_ =
3507
3808
com .google .protobuf .LazyStringArrayList .EMPTY ;
3508
3809
0 commit comments