@@ -41,6 +41,7 @@ private BigQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder
41
41
private BigQueryConfig () {
42
42
table_ = "" ;
43
43
state_ = 0 ;
44
+ serviceAccountEmail_ = "" ;
44
45
}
45
46
46
47
@ java .lang .Override
@@ -477,6 +478,67 @@ public boolean getUseTableSchema() {
477
478
return useTableSchema_ ;
478
479
}
479
480
481
+ public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 7 ;
482
+
483
+ @ SuppressWarnings ("serial" )
484
+ private volatile java .lang .Object serviceAccountEmail_ = "" ;
485
+ /**
486
+ *
487
+ *
488
+ * <pre>
489
+ * Optional. The service account to use to write to BigQuery. The subscription
490
+ * creator or updater that specifies this field must have
491
+ * `iam.serviceAccounts.actAs` permission on the service account. If not
492
+ * specified, the Pub/Sub [service
493
+ * agent](https://cloud.google.com/iam/docs/service-agents),
494
+ * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
495
+ * </pre>
496
+ *
497
+ * <code>string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
498
+ *
499
+ * @return The serviceAccountEmail.
500
+ */
501
+ @ java .lang .Override
502
+ public java .lang .String getServiceAccountEmail () {
503
+ java .lang .Object ref = serviceAccountEmail_ ;
504
+ if (ref instanceof java .lang .String ) {
505
+ return (java .lang .String ) ref ;
506
+ } else {
507
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
508
+ java .lang .String s = bs .toStringUtf8 ();
509
+ serviceAccountEmail_ = s ;
510
+ return s ;
511
+ }
512
+ }
513
+ /**
514
+ *
515
+ *
516
+ * <pre>
517
+ * Optional. The service account to use to write to BigQuery. The subscription
518
+ * creator or updater that specifies this field must have
519
+ * `iam.serviceAccounts.actAs` permission on the service account. If not
520
+ * specified, the Pub/Sub [service
521
+ * agent](https://cloud.google.com/iam/docs/service-agents),
522
+ * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
523
+ * </pre>
524
+ *
525
+ * <code>string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
526
+ *
527
+ * @return The bytes for serviceAccountEmail.
528
+ */
529
+ @ java .lang .Override
530
+ public com .google .protobuf .ByteString getServiceAccountEmailBytes () {
531
+ java .lang .Object ref = serviceAccountEmail_ ;
532
+ if (ref instanceof java .lang .String ) {
533
+ com .google .protobuf .ByteString b =
534
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
535
+ serviceAccountEmail_ = b ;
536
+ return b ;
537
+ } else {
538
+ return (com .google .protobuf .ByteString ) ref ;
539
+ }
540
+ }
541
+
480
542
private byte memoizedIsInitialized = -1 ;
481
543
482
544
@ java .lang .Override
@@ -509,6 +571,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
509
571
if (useTableSchema_ != false ) {
510
572
output .writeBool (6 , useTableSchema_ );
511
573
}
574
+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (serviceAccountEmail_ )) {
575
+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 7 , serviceAccountEmail_ );
576
+ }
512
577
getUnknownFields ().writeTo (output );
513
578
}
514
579
@@ -536,6 +601,9 @@ public int getSerializedSize() {
536
601
if (useTableSchema_ != false ) {
537
602
size += com .google .protobuf .CodedOutputStream .computeBoolSize (6 , useTableSchema_ );
538
603
}
604
+ if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (serviceAccountEmail_ )) {
605
+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (7 , serviceAccountEmail_ );
606
+ }
539
607
size += getUnknownFields ().getSerializedSize ();
540
608
memoizedSize = size ;
541
609
return size ;
@@ -557,6 +625,7 @@ public boolean equals(final java.lang.Object obj) {
557
625
if (getDropUnknownFields () != other .getDropUnknownFields ()) return false ;
558
626
if (state_ != other .state_ ) return false ;
559
627
if (getUseTableSchema () != other .getUseTableSchema ()) return false ;
628
+ if (!getServiceAccountEmail ().equals (other .getServiceAccountEmail ())) return false ;
560
629
if (!getUnknownFields ().equals (other .getUnknownFields ())) return false ;
561
630
return true ;
562
631
}
@@ -580,6 +649,8 @@ public int hashCode() {
580
649
hash = (53 * hash ) + state_ ;
581
650
hash = (37 * hash ) + USE_TABLE_SCHEMA_FIELD_NUMBER ;
582
651
hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getUseTableSchema ());
652
+ hash = (37 * hash ) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER ;
653
+ hash = (53 * hash ) + getServiceAccountEmail ().hashCode ();
583
654
hash = (29 * hash ) + getUnknownFields ().hashCode ();
584
655
memoizedHashCode = hash ;
585
656
return hash ;
@@ -724,6 +795,7 @@ public Builder clear() {
724
795
dropUnknownFields_ = false ;
725
796
state_ = 0 ;
726
797
useTableSchema_ = false ;
798
+ serviceAccountEmail_ = "" ;
727
799
return this ;
728
800
}
729
801
@@ -777,6 +849,9 @@ private void buildPartial0(com.google.pubsub.v1.BigQueryConfig result) {
777
849
if (((from_bitField0_ & 0x00000020 ) != 0 )) {
778
850
result .useTableSchema_ = useTableSchema_ ;
779
851
}
852
+ if (((from_bitField0_ & 0x00000040 ) != 0 )) {
853
+ result .serviceAccountEmail_ = serviceAccountEmail_ ;
854
+ }
780
855
}
781
856
782
857
@ java .lang .Override
@@ -844,6 +919,11 @@ public Builder mergeFrom(com.google.pubsub.v1.BigQueryConfig other) {
844
919
if (other .getUseTableSchema () != false ) {
845
920
setUseTableSchema (other .getUseTableSchema ());
846
921
}
922
+ if (!other .getServiceAccountEmail ().isEmpty ()) {
923
+ serviceAccountEmail_ = other .serviceAccountEmail_ ;
924
+ bitField0_ |= 0x00000040 ;
925
+ onChanged ();
926
+ }
847
927
this .mergeUnknownFields (other .getUnknownFields ());
848
928
onChanged ();
849
929
return this ;
@@ -906,6 +986,12 @@ public Builder mergeFrom(
906
986
bitField0_ |= 0x00000020 ;
907
987
break ;
908
988
} // case 48
989
+ case 58 :
990
+ {
991
+ serviceAccountEmail_ = input .readStringRequireUtf8 ();
992
+ bitField0_ |= 0x00000040 ;
993
+ break ;
994
+ } // case 58
909
995
default :
910
996
{
911
997
if (!super .parseUnknownField (input , extensionRegistry , tag )) {
@@ -1389,6 +1475,137 @@ public Builder clearUseTableSchema() {
1389
1475
return this ;
1390
1476
}
1391
1477
1478
+ private java .lang .Object serviceAccountEmail_ = "" ;
1479
+ /**
1480
+ *
1481
+ *
1482
+ * <pre>
1483
+ * Optional. The service account to use to write to BigQuery. The subscription
1484
+ * creator or updater that specifies this field must have
1485
+ * `iam.serviceAccounts.actAs` permission on the service account. If not
1486
+ * specified, the Pub/Sub [service
1487
+ * agent](https://cloud.google.com/iam/docs/service-agents),
1488
+ * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
1489
+ * </pre>
1490
+ *
1491
+ * <code>string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
1492
+ *
1493
+ * @return The serviceAccountEmail.
1494
+ */
1495
+ public java .lang .String getServiceAccountEmail () {
1496
+ java .lang .Object ref = serviceAccountEmail_ ;
1497
+ if (!(ref instanceof java .lang .String )) {
1498
+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
1499
+ java .lang .String s = bs .toStringUtf8 ();
1500
+ serviceAccountEmail_ = s ;
1501
+ return s ;
1502
+ } else {
1503
+ return (java .lang .String ) ref ;
1504
+ }
1505
+ }
1506
+ /**
1507
+ *
1508
+ *
1509
+ * <pre>
1510
+ * Optional. The service account to use to write to BigQuery. The subscription
1511
+ * creator or updater that specifies this field must have
1512
+ * `iam.serviceAccounts.actAs` permission on the service account. If not
1513
+ * specified, the Pub/Sub [service
1514
+ * agent](https://cloud.google.com/iam/docs/service-agents),
1515
+ * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
1516
+ * </pre>
1517
+ *
1518
+ * <code>string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
1519
+ *
1520
+ * @return The bytes for serviceAccountEmail.
1521
+ */
1522
+ public com .google .protobuf .ByteString getServiceAccountEmailBytes () {
1523
+ java .lang .Object ref = serviceAccountEmail_ ;
1524
+ if (ref instanceof String ) {
1525
+ com .google .protobuf .ByteString b =
1526
+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
1527
+ serviceAccountEmail_ = b ;
1528
+ return b ;
1529
+ } else {
1530
+ return (com .google .protobuf .ByteString ) ref ;
1531
+ }
1532
+ }
1533
+ /**
1534
+ *
1535
+ *
1536
+ * <pre>
1537
+ * Optional. The service account to use to write to BigQuery. The subscription
1538
+ * creator or updater that specifies this field must have
1539
+ * `iam.serviceAccounts.actAs` permission on the service account. If not
1540
+ * specified, the Pub/Sub [service
1541
+ * agent](https://cloud.google.com/iam/docs/service-agents),
1542
+ * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
1543
+ * </pre>
1544
+ *
1545
+ * <code>string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
1546
+ *
1547
+ * @param value The serviceAccountEmail to set.
1548
+ * @return This builder for chaining.
1549
+ */
1550
+ public Builder setServiceAccountEmail (java .lang .String value ) {
1551
+ if (value == null ) {
1552
+ throw new NullPointerException ();
1553
+ }
1554
+ serviceAccountEmail_ = value ;
1555
+ bitField0_ |= 0x00000040 ;
1556
+ onChanged ();
1557
+ return this ;
1558
+ }
1559
+ /**
1560
+ *
1561
+ *
1562
+ * <pre>
1563
+ * Optional. The service account to use to write to BigQuery. The subscription
1564
+ * creator or updater that specifies this field must have
1565
+ * `iam.serviceAccounts.actAs` permission on the service account. If not
1566
+ * specified, the Pub/Sub [service
1567
+ * agent](https://cloud.google.com/iam/docs/service-agents),
1568
+ * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
1569
+ * </pre>
1570
+ *
1571
+ * <code>string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
1572
+ *
1573
+ * @return This builder for chaining.
1574
+ */
1575
+ public Builder clearServiceAccountEmail () {
1576
+ serviceAccountEmail_ = getDefaultInstance ().getServiceAccountEmail ();
1577
+ bitField0_ = (bitField0_ & ~0x00000040 );
1578
+ onChanged ();
1579
+ return this ;
1580
+ }
1581
+ /**
1582
+ *
1583
+ *
1584
+ * <pre>
1585
+ * Optional. The service account to use to write to BigQuery. The subscription
1586
+ * creator or updater that specifies this field must have
1587
+ * `iam.serviceAccounts.actAs` permission on the service account. If not
1588
+ * specified, the Pub/Sub [service
1589
+ * agent](https://cloud.google.com/iam/docs/service-agents),
1590
+ * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
1591
+ * </pre>
1592
+ *
1593
+ * <code>string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
1594
+ *
1595
+ * @param value The bytes for serviceAccountEmail to set.
1596
+ * @return This builder for chaining.
1597
+ */
1598
+ public Builder setServiceAccountEmailBytes (com .google .protobuf .ByteString value ) {
1599
+ if (value == null ) {
1600
+ throw new NullPointerException ();
1601
+ }
1602
+ checkByteStringIsUtf8 (value );
1603
+ serviceAccountEmail_ = value ;
1604
+ bitField0_ |= 0x00000040 ;
1605
+ onChanged ();
1606
+ return this ;
1607
+ }
1608
+
1392
1609
@ java .lang .Override
1393
1610
public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
1394
1611
return super .setUnknownFields (unknownFields );
0 commit comments