@@ -259,7 +259,7 @@ private EncryptionType(int value) {
259
259
}
260
260
261
261
public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 1 ;
262
- private int encryptionType_ ;
262
+ private int encryptionType_ = 0 ;
263
263
/**
264
264
*
265
265
*
@@ -293,9 +293,8 @@ public int getEncryptionTypeValue() {
293
293
@ java .lang .Override
294
294
public com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType
295
295
getEncryptionType () {
296
- @ SuppressWarnings ("deprecation" )
297
296
com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType result =
298
- com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType .valueOf (
297
+ com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType .forNumber (
299
298
encryptionType_ );
300
299
return result == null
301
300
? com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType
@@ -304,7 +303,9 @@ public int getEncryptionTypeValue() {
304
303
}
305
304
306
305
public static final int KMS_KEY_NAME_FIELD_NUMBER = 2 ;
307
- private volatile java .lang .Object kmsKeyName_ ;
306
+
307
+ @ SuppressWarnings ("serial" )
308
+ private volatile java .lang .Object kmsKeyName_ = "" ;
308
309
/**
309
310
*
310
311
*
@@ -577,10 +578,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
577
578
@ java .lang .Override
578
579
public Builder clear () {
579
580
super .clear ();
581
+ bitField0_ = 0 ;
580
582
encryptionType_ = 0 ;
581
-
582
583
kmsKeyName_ = "" ;
583
-
584
584
return this ;
585
585
}
586
586
@@ -609,12 +609,24 @@ public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig build() {
609
609
public com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig buildPartial () {
610
610
com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig result =
611
611
new com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig (this );
612
- result .encryptionType_ = encryptionType_ ;
613
- result .kmsKeyName_ = kmsKeyName_ ;
612
+ if (bitField0_ != 0 ) {
613
+ buildPartial0 (result );
614
+ }
614
615
onBuilt ();
615
616
return result ;
616
617
}
617
618
619
+ private void buildPartial0 (
620
+ com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig result ) {
621
+ int from_bitField0_ = bitField0_ ;
622
+ if (((from_bitField0_ & 0x00000001 ) != 0 )) {
623
+ result .encryptionType_ = encryptionType_ ;
624
+ }
625
+ if (((from_bitField0_ & 0x00000002 ) != 0 )) {
626
+ result .kmsKeyName_ = kmsKeyName_ ;
627
+ }
628
+ }
629
+
618
630
@ java .lang .Override
619
631
public Builder clone () {
620
632
return super .clone ();
@@ -668,6 +680,7 @@ public Builder mergeFrom(
668
680
}
669
681
if (!other .getKmsKeyName ().isEmpty ()) {
670
682
kmsKeyName_ = other .kmsKeyName_ ;
683
+ bitField0_ |= 0x00000002 ;
671
684
onChanged ();
672
685
}
673
686
this .mergeUnknownFields (other .getUnknownFields ());
@@ -699,13 +712,13 @@ public Builder mergeFrom(
699
712
case 8 :
700
713
{
701
714
encryptionType_ = input .readEnum ();
702
-
715
+ bitField0_ |= 0x00000001 ;
703
716
break ;
704
717
} // case 8
705
718
case 18 :
706
719
{
707
720
kmsKeyName_ = input .readStringRequireUtf8 ();
708
-
721
+ bitField0_ |= 0x00000002 ;
709
722
break ;
710
723
} // case 18
711
724
default :
@@ -725,6 +738,8 @@ public Builder mergeFrom(
725
738
return this ;
726
739
}
727
740
741
+ private int bitField0_ ;
742
+
728
743
private int encryptionType_ = 0 ;
729
744
/**
730
745
*
@@ -758,8 +773,8 @@ public int getEncryptionTypeValue() {
758
773
* @return This builder for chaining.
759
774
*/
760
775
public Builder setEncryptionTypeValue (int value ) {
761
-
762
776
encryptionType_ = value ;
777
+ bitField0_ |= 0x00000001 ;
763
778
onChanged ();
764
779
return this ;
765
780
}
@@ -779,9 +794,8 @@ public Builder setEncryptionTypeValue(int value) {
779
794
@ java .lang .Override
780
795
public com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType
781
796
getEncryptionType () {
782
- @ SuppressWarnings ("deprecation" )
783
797
com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType result =
784
- com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType .valueOf (
798
+ com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType .forNumber (
785
799
encryptionType_ );
786
800
return result == null
787
801
? com .google .spanner .admin .database .v1 .CopyBackupEncryptionConfig .EncryptionType
@@ -807,7 +821,7 @@ public Builder setEncryptionType(
807
821
if (value == null ) {
808
822
throw new NullPointerException ();
809
823
}
810
-
824
+ bitField0_ |= 0x00000001 ;
811
825
encryptionType_ = value .getNumber ();
812
826
onChanged ();
813
827
return this ;
@@ -826,7 +840,7 @@ public Builder setEncryptionType(
826
840
* @return This builder for chaining.
827
841
*/
828
842
public Builder clearEncryptionType () {
829
-
843
+ bitField0_ = ( bitField0_ & ~ 0x00000001 );
830
844
encryptionType_ = 0 ;
831
845
onChanged ();
832
846
return this ;
@@ -911,8 +925,8 @@ public Builder setKmsKeyName(java.lang.String value) {
911
925
if (value == null ) {
912
926
throw new NullPointerException ();
913
927
}
914
-
915
928
kmsKeyName_ = value ;
929
+ bitField0_ |= 0x00000002 ;
916
930
onChanged ();
917
931
return this ;
918
932
}
@@ -934,8 +948,8 @@ public Builder setKmsKeyName(java.lang.String value) {
934
948
* @return This builder for chaining.
935
949
*/
936
950
public Builder clearKmsKeyName () {
937
-
938
951
kmsKeyName_ = getDefaultInstance ().getKmsKeyName ();
952
+ bitField0_ = (bitField0_ & ~0x00000002 );
939
953
onChanged ();
940
954
return this ;
941
955
}
@@ -962,8 +976,8 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
962
976
throw new NullPointerException ();
963
977
}
964
978
checkByteStringIsUtf8 (value );
965
-
966
979
kmsKeyName_ = value ;
980
+ bitField0_ |= 0x00000002 ;
967
981
onChanged ();
968
982
return this ;
969
983
}
0 commit comments