diff --git a/Spanner/metadata/V1/Type.php b/Spanner/metadata/V1/Type.php index 2f79e32151c8..aff66adb2442 100644 Binary files a/Spanner/metadata/V1/Type.php and b/Spanner/metadata/V1/Type.php differ diff --git a/Spanner/src/V1/TransactionOptions/PBReadOnly.php b/Spanner/src/V1/TransactionOptions/PBReadOnly.php index f8eed828decb..89e2128e168f 100644 --- a/Spanner/src/V1/TransactionOptions/PBReadOnly.php +++ b/Spanner/src/V1/TransactionOptions/PBReadOnly.php @@ -1,5 +1,4 @@ PG_NUMERIC = 2; */ const PG_NUMERIC = 2; + /** + * PostgreSQL compatible JSONB type. This annotation needs to be applied to + * [Type][google.spanner.v1.Type] instances having [JSON][google.spanner.v1.TypeCode.JSON] + * type code to specify that values of this type should be treated as + * PostgreSQL JSONB values. Currently this annotation is always needed for + * [JSON][google.spanner.v1.TypeCode.JSON] when a client interacts with PostgreSQL-enabled + * Spanner databases. + * + * Generated from protobuf enum PG_JSONB = 3; + */ + const PG_JSONB = 3; private static $valueToName = [ self::TYPE_ANNOTATION_CODE_UNSPECIFIED => 'TYPE_ANNOTATION_CODE_UNSPECIFIED', self::PG_NUMERIC => 'PG_NUMERIC', + self::PG_JSONB => 'PG_JSONB', ]; public static function name($value)