@@ -41,6 +41,7 @@ private Notification(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
41
41
private Notification () {
42
42
name_ = "" ;
43
43
messages_ = java .util .Collections .emptyList ();
44
+ notificationType_ = 0 ;
44
45
}
45
46
46
47
@ java .lang .Override
@@ -295,6 +296,43 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
295
296
return createTime_ == null ? com .google .protobuf .Timestamp .getDefaultInstance () : createTime_ ;
296
297
}
297
298
299
+ public static final int NOTIFICATION_TYPE_FIELD_NUMBER = 12 ;
300
+ private int notificationType_ = 0 ;
301
+ /**
302
+ *
303
+ *
304
+ * <pre>
305
+ * Type of notification
306
+ * </pre>
307
+ *
308
+ * <code>.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;</code>
309
+ *
310
+ * @return The enum numeric value on the wire for notificationType.
311
+ */
312
+ @ java .lang .Override
313
+ public int getNotificationTypeValue () {
314
+ return notificationType_ ;
315
+ }
316
+ /**
317
+ *
318
+ *
319
+ * <pre>
320
+ * Type of notification
321
+ * </pre>
322
+ *
323
+ * <code>.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;</code>
324
+ *
325
+ * @return The notificationType.
326
+ */
327
+ @ java .lang .Override
328
+ public com .google .cloud .advisorynotifications .v1 .NotificationType getNotificationType () {
329
+ com .google .cloud .advisorynotifications .v1 .NotificationType result =
330
+ com .google .cloud .advisorynotifications .v1 .NotificationType .forNumber (notificationType_ );
331
+ return result == null
332
+ ? com .google .cloud .advisorynotifications .v1 .NotificationType .UNRECOGNIZED
333
+ : result ;
334
+ }
335
+
298
336
private byte memoizedIsInitialized = -1 ;
299
337
300
338
@ java .lang .Override
@@ -321,6 +359,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
321
359
if (createTime_ != null ) {
322
360
output .writeMessage (4 , getCreateTime ());
323
361
}
362
+ if (notificationType_
363
+ != com .google .cloud .advisorynotifications .v1 .NotificationType .NOTIFICATION_TYPE_UNSPECIFIED
364
+ .getNumber ()) {
365
+ output .writeEnum (12 , notificationType_ );
366
+ }
324
367
getUnknownFields ().writeTo (output );
325
368
}
326
369
@@ -342,6 +385,11 @@ public int getSerializedSize() {
342
385
if (createTime_ != null ) {
343
386
size += com .google .protobuf .CodedOutputStream .computeMessageSize (4 , getCreateTime ());
344
387
}
388
+ if (notificationType_
389
+ != com .google .cloud .advisorynotifications .v1 .NotificationType .NOTIFICATION_TYPE_UNSPECIFIED
390
+ .getNumber ()) {
391
+ size += com .google .protobuf .CodedOutputStream .computeEnumSize (12 , notificationType_ );
392
+ }
345
393
size += getUnknownFields ().getSerializedSize ();
346
394
memoizedSize = size ;
347
395
return size ;
@@ -368,6 +416,7 @@ public boolean equals(final java.lang.Object obj) {
368
416
if (hasCreateTime ()) {
369
417
if (!getCreateTime ().equals (other .getCreateTime ())) return false ;
370
418
}
419
+ if (notificationType_ != other .notificationType_ ) return false ;
371
420
if (!getUnknownFields ().equals (other .getUnknownFields ())) return false ;
372
421
return true ;
373
422
}
@@ -393,6 +442,8 @@ public int hashCode() {
393
442
hash = (37 * hash ) + CREATE_TIME_FIELD_NUMBER ;
394
443
hash = (53 * hash ) + getCreateTime ().hashCode ();
395
444
}
445
+ hash = (37 * hash ) + NOTIFICATION_TYPE_FIELD_NUMBER ;
446
+ hash = (53 * hash ) + notificationType_ ;
396
447
hash = (29 * hash ) + getUnknownFields ().hashCode ();
397
448
memoizedHashCode = hash ;
398
449
return hash ;
@@ -552,6 +603,7 @@ public Builder clear() {
552
603
createTimeBuilder_ .dispose ();
553
604
createTimeBuilder_ = null ;
554
605
}
606
+ notificationType_ = 0 ;
555
607
return this ;
556
608
}
557
609
@@ -611,6 +663,9 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Notificatio
611
663
if (((from_bitField0_ & 0x00000008 ) != 0 )) {
612
664
result .createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_ .build ();
613
665
}
666
+ if (((from_bitField0_ & 0x00000010 ) != 0 )) {
667
+ result .notificationType_ = notificationType_ ;
668
+ }
614
669
}
615
670
616
671
@ java .lang .Override
@@ -697,6 +752,9 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Notification
697
752
if (other .hasCreateTime ()) {
698
753
mergeCreateTime (other .getCreateTime ());
699
754
}
755
+ if (other .notificationType_ != 0 ) {
756
+ setNotificationTypeValue (other .getNotificationTypeValue ());
757
+ }
700
758
this .mergeUnknownFields (other .getUnknownFields ());
701
759
onChanged ();
702
760
return this ;
@@ -755,6 +813,12 @@ public Builder mergeFrom(
755
813
bitField0_ |= 0x00000008 ;
756
814
break ;
757
815
} // case 34
816
+ case 96 :
817
+ {
818
+ notificationType_ = input .readEnum ();
819
+ bitField0_ |= 0x00000010 ;
820
+ break ;
821
+ } // case 96
758
822
default :
759
823
{
760
824
if (!super .parseUnknownField (input , extensionRegistry , tag )) {
@@ -1628,6 +1692,99 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
1628
1692
return createTimeBuilder_ ;
1629
1693
}
1630
1694
1695
+ private int notificationType_ = 0 ;
1696
+ /**
1697
+ *
1698
+ *
1699
+ * <pre>
1700
+ * Type of notification
1701
+ * </pre>
1702
+ *
1703
+ * <code>.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;</code>
1704
+ *
1705
+ * @return The enum numeric value on the wire for notificationType.
1706
+ */
1707
+ @ java .lang .Override
1708
+ public int getNotificationTypeValue () {
1709
+ return notificationType_ ;
1710
+ }
1711
+ /**
1712
+ *
1713
+ *
1714
+ * <pre>
1715
+ * Type of notification
1716
+ * </pre>
1717
+ *
1718
+ * <code>.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;</code>
1719
+ *
1720
+ * @param value The enum numeric value on the wire for notificationType to set.
1721
+ * @return This builder for chaining.
1722
+ */
1723
+ public Builder setNotificationTypeValue (int value ) {
1724
+ notificationType_ = value ;
1725
+ bitField0_ |= 0x00000010 ;
1726
+ onChanged ();
1727
+ return this ;
1728
+ }
1729
+ /**
1730
+ *
1731
+ *
1732
+ * <pre>
1733
+ * Type of notification
1734
+ * </pre>
1735
+ *
1736
+ * <code>.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;</code>
1737
+ *
1738
+ * @return The notificationType.
1739
+ */
1740
+ @ java .lang .Override
1741
+ public com .google .cloud .advisorynotifications .v1 .NotificationType getNotificationType () {
1742
+ com .google .cloud .advisorynotifications .v1 .NotificationType result =
1743
+ com .google .cloud .advisorynotifications .v1 .NotificationType .forNumber (notificationType_ );
1744
+ return result == null
1745
+ ? com .google .cloud .advisorynotifications .v1 .NotificationType .UNRECOGNIZED
1746
+ : result ;
1747
+ }
1748
+ /**
1749
+ *
1750
+ *
1751
+ * <pre>
1752
+ * Type of notification
1753
+ * </pre>
1754
+ *
1755
+ * <code>.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;</code>
1756
+ *
1757
+ * @param value The notificationType to set.
1758
+ * @return This builder for chaining.
1759
+ */
1760
+ public Builder setNotificationType (
1761
+ com .google .cloud .advisorynotifications .v1 .NotificationType value ) {
1762
+ if (value == null ) {
1763
+ throw new NullPointerException ();
1764
+ }
1765
+ bitField0_ |= 0x00000010 ;
1766
+ notificationType_ = value .getNumber ();
1767
+ onChanged ();
1768
+ return this ;
1769
+ }
1770
+ /**
1771
+ *
1772
+ *
1773
+ * <pre>
1774
+ * Type of notification
1775
+ * </pre>
1776
+ *
1777
+ * <code>.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;</code>
1778
+ *
1779
+ * @return This builder for chaining.
1780
+ */
1781
+ public Builder clearNotificationType () {
1782
+ bitField0_ = (bitField0_ & ~0x00000010 );
1783
+ notificationType_ = 0 ;
1784
+ onChanged ();
1785
+ return this ;
1786
+ }
1787
+
1631
1788
@ java .lang .Override
1632
1789
public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
1633
1790
return super .setUnknownFields (unknownFields );
0 commit comments