@@ -612,6 +612,37 @@ public ReadAll withEmulatorHost(String emulatorHost) {
612612 return withEmulatorHost (ValueProvider .StaticValueProvider .of (emulatorHost ));
613613 }
614614
615+ /** Specifies the SpannerOptions experimental host (setExperimentalHost). */
616+ public ReadAll withExperimentalHost (ValueProvider <String > experimentalHost ) {
617+ SpannerConfig config = getSpannerConfig ();
618+ return withSpannerConfig (config .withExperimentalHost (experimentalHost ));
619+ }
620+
621+ public ReadAll withExperimentalHost (String experimentalHost ) {
622+ return withExperimentalHost (ValueProvider .StaticValueProvider .of (experimentalHost ));
623+ }
624+
625+ /**
626+ * Specifies whether to use plaintext channel.
627+ *
628+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
629+ * withExperimentalHost}).
630+ */
631+ public ReadAll withUsingPlainTextChannel (ValueProvider <Boolean > plainText ) {
632+ SpannerConfig config = getSpannerConfig ();
633+ return withSpannerConfig (config .withUsingPlainTextChannel (plainText ));
634+ }
635+
636+ /**
637+ * Specifies whether to use plaintext channel.
638+ *
639+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
640+ * withExperimentalHost}).
641+ */
642+ public ReadAll withUsingPlainTextChannel (boolean plainText ) {
643+ return withUsingPlainTextChannel (ValueProvider .StaticValueProvider .of (plainText ));
644+ }
645+
615646 /** Specifies the Cloud Spanner database. */
616647 public ReadAll withDatabaseId (ValueProvider <String > databaseId ) {
617648 SpannerConfig config = getSpannerConfig ();
@@ -841,6 +872,37 @@ public Read withEmulatorHost(String emulatorHost) {
841872 return withEmulatorHost (ValueProvider .StaticValueProvider .of (emulatorHost ));
842873 }
843874
875+ /** Specifies the SpannerOptions experimental host (setExperimentalHost). */
876+ public Read withExperimentalHost (ValueProvider <String > experimentalHost ) {
877+ SpannerConfig config = getSpannerConfig ();
878+ return withSpannerConfig (config .withExperimentalHost (experimentalHost ));
879+ }
880+
881+ public Read withExperimentalHost (String experimentalHost ) {
882+ return withExperimentalHost (ValueProvider .StaticValueProvider .of (experimentalHost ));
883+ }
884+
885+ /**
886+ * Specifies whether to use plaintext channel.
887+ *
888+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
889+ * withExperimentalHost}).
890+ */
891+ public Read withUsingPlainTextChannel (ValueProvider <Boolean > plainText ) {
892+ SpannerConfig config = getSpannerConfig ();
893+ return withSpannerConfig (config .withUsingPlainTextChannel (plainText ));
894+ }
895+
896+ /**
897+ * Specifies whether to use plaintext channel.
898+ *
899+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
900+ * withExperimentalHost}).
901+ */
902+ public Read withUsingPlainTextChannel (boolean plainText ) {
903+ return withUsingPlainTextChannel (ValueProvider .StaticValueProvider .of (plainText ));
904+ }
905+
844906 /** If true the uses Cloud Spanner batch API. */
845907 public Read withBatching (boolean batching ) {
846908 return toBuilder ().setBatching (batching ).build ();
@@ -1137,6 +1199,37 @@ public CreateTransaction withEmulatorHost(String emulatorHost) {
11371199 return withEmulatorHost (ValueProvider .StaticValueProvider .of (emulatorHost ));
11381200 }
11391201
1202+ /** Specifies the SpannerOptions experimental host (setExperimentalHost). */
1203+ public CreateTransaction withExperimentalHost (ValueProvider <String > experimentalHost ) {
1204+ SpannerConfig config = getSpannerConfig ();
1205+ return withSpannerConfig (config .withExperimentalHost (experimentalHost ));
1206+ }
1207+
1208+ public CreateTransaction withExperimentalHost (String experimentalHost ) {
1209+ return withExperimentalHost (ValueProvider .StaticValueProvider .of (experimentalHost ));
1210+ }
1211+
1212+ /**
1213+ * Specifies whether to use plaintext channel.
1214+ *
1215+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
1216+ * withExperimentalHost}).
1217+ */
1218+ public CreateTransaction withUsingPlainTextChannel (ValueProvider <Boolean > plainText ) {
1219+ SpannerConfig config = getSpannerConfig ();
1220+ return withSpannerConfig (config .withUsingPlainTextChannel (plainText ));
1221+ }
1222+
1223+ /**
1224+ * Specifies whether to use plaintext channel.
1225+ *
1226+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
1227+ * withExperimentalHost}).
1228+ */
1229+ public CreateTransaction withUsingPlainTextChannel (boolean plainText ) {
1230+ return withUsingPlainTextChannel (ValueProvider .StaticValueProvider .of (plainText ));
1231+ }
1232+
11401233 @ VisibleForTesting
11411234 CreateTransaction withServiceFactory (ServiceFactory <Spanner , SpannerOptions > serviceFactory ) {
11421235 SpannerConfig config = getSpannerConfig ();
@@ -1274,6 +1367,37 @@ public Write withEmulatorHost(String emulatorHost) {
12741367 return withEmulatorHost (ValueProvider .StaticValueProvider .of (emulatorHost ));
12751368 }
12761369
1370+ /** Specifies the SpannerOptions experimental host (setExperimentalHost). */
1371+ public Write withExperimentalHost (ValueProvider <String > experimentalHost ) {
1372+ SpannerConfig config = getSpannerConfig ();
1373+ return withSpannerConfig (config .withExperimentalHost (experimentalHost ));
1374+ }
1375+
1376+ public Write withExperimentalHost (String experimentalHost ) {
1377+ return withExperimentalHost (ValueProvider .StaticValueProvider .of (experimentalHost ));
1378+ }
1379+
1380+ /**
1381+ * Specifies whether to use plaintext channel.
1382+ *
1383+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
1384+ * withExperimentalHost}).
1385+ */
1386+ public Write withUsingPlainTextChannel (ValueProvider <Boolean > plainText ) {
1387+ SpannerConfig config = getSpannerConfig ();
1388+ return withSpannerConfig (config .withUsingPlainTextChannel (plainText ));
1389+ }
1390+
1391+ /**
1392+ * Specifies whether to use plaintext channel.
1393+ *
1394+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
1395+ * withExperimentalHost}).
1396+ */
1397+ public Write withUsingPlainTextChannel (boolean plainText ) {
1398+ return withUsingPlainTextChannel (ValueProvider .StaticValueProvider .of (plainText ));
1399+ }
1400+
12771401 public Write withDialectView (PCollectionView <Dialect > dialect ) {
12781402 return toBuilder ().setDialectView (dialect ).build ();
12791403 }
@@ -1626,6 +1750,10 @@ public abstract static class ReadChangeStream
16261750
16271751 abstract @ Nullable Duration getWatermarkRefreshRate ();
16281752
1753+ abstract @ Nullable ValueProvider <String > getExperimentalHost ();
1754+
1755+ abstract @ Nullable ValueProvider <Boolean > getPlainText ();
1756+
16291757 abstract Builder toBuilder ();
16301758
16311759 @ AutoValue .Builder
@@ -1651,6 +1779,10 @@ abstract static class Builder {
16511779
16521780 abstract Builder setWatermarkRefreshRate (Duration refreshRate );
16531781
1782+ abstract Builder setExperimentalHost (ValueProvider <String > experimentalHost );
1783+
1784+ abstract Builder setPlainText (ValueProvider <Boolean > plainText );
1785+
16541786 abstract ReadChangeStream build ();
16551787 }
16561788
@@ -1741,6 +1873,38 @@ public ReadChangeStream withWatermarkRefreshRate(Duration refreshRate) {
17411873 return toBuilder ().setWatermarkRefreshRate (refreshRate ).build ();
17421874 }
17431875
1876+ /** Specifies the experimental host to set on SpannerOptions (setExperimentalHost). */
1877+ public ReadChangeStream withExperimentalHost (ValueProvider <String > experimentalHost ) {
1878+ SpannerConfig config = getSpannerConfig ();
1879+ return withSpannerConfig (config .withExperimentalHost (experimentalHost ));
1880+ }
1881+
1882+ /** Specifies the experimental host to set on SpannerOptions (setExperimentalHost). */
1883+ public ReadChangeStream withExperimentalHost (String experimentalHost ) {
1884+ return withExperimentalHost (ValueProvider .StaticValueProvider .of (experimentalHost ));
1885+ }
1886+
1887+ /**
1888+ * Specifies whether to use plaintext channel.
1889+ *
1890+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
1891+ * withExperimentalHost}).
1892+ */
1893+ public ReadChangeStream withUsingPlainTextChannel (ValueProvider <Boolean > plainText ) {
1894+ SpannerConfig config = getSpannerConfig ();
1895+ return withSpannerConfig (config .withUsingPlainTextChannel (plainText ));
1896+ }
1897+
1898+ /**
1899+ * Specifies whether to use plaintext channel.
1900+ *
1901+ * <p>Note: This parameter is only valid when using an experimental host (set via {@code
1902+ * withExperimentalHost}).
1903+ */
1904+ public ReadChangeStream withUsingPlainTextChannel (boolean plainText ) {
1905+ return withUsingPlainTextChannel (ValueProvider .StaticValueProvider .of (plainText ));
1906+ }
1907+
17441908 @ Override
17451909 public PCollection <DataChangeRecord > expand (PBegin input ) {
17461910 checkArgument (
0 commit comments