Skip to content

Commit

Permalink
feat: Adds auto-generated CL for googleapis for jsonb (#1983)
Browse files Browse the repository at this point in the history
* feat: Adds auto-generated CL for googleapis for jsonb

PiperOrigin-RevId: 470167051

Source-Link: googleapis/googleapis@343f52c

Source-Link: googleapis/googleapis-gen@a416799
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTQxNjc5OWEzNzI2OTkxMmZhMGNmZGUyNzljZTUwYjdjMzY3MGRiMSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Aug 29, 2022
1 parent 6abb016 commit 23e57ff
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
Expand Up @@ -57,6 +57,21 @@ public enum TypeAnnotationCode implements com.google.protobuf.ProtocolMessageEnu
* <code>PG_NUMERIC = 2;</code>
*/
PG_NUMERIC(2),
/**
*
*
* <pre>
* 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.
* </pre>
*
* <code>PG_JSONB = 3;</code>
*/
PG_JSONB(3),
UNRECOGNIZED(-1),
;

Expand Down Expand Up @@ -85,6 +100,21 @@ public enum TypeAnnotationCode implements com.google.protobuf.ProtocolMessageEnu
* <code>PG_NUMERIC = 2;</code>
*/
public static final int PG_NUMERIC_VALUE = 2;
/**
*
*
* <pre>
* 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.
* </pre>
*
* <code>PG_JSONB = 3;</code>
*/
public static final int PG_JSONB_VALUE = 3;

public final int getNumber() {
if (this == UNRECOGNIZED) {
Expand Down Expand Up @@ -114,6 +144,8 @@ public static TypeAnnotationCode forNumber(int value) {
return TYPE_ANNOTATION_CODE_UNSPECIFIED;
case 2:
return PG_NUMERIC;
case 3:
return PG_JSONB;
default:
return null;
}
Expand Down
Expand Up @@ -63,13 +63,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004BOOL\020\001\022\t\n\005INT64\020\002\022\013\n\007FLOAT64\020\003\022\r\n\tTIMES"
+ "TAMP\020\004\022\010\n\004DATE\020\005\022\n\n\006STRING\020\006\022\t\n\005BYTES\020\007\022"
+ "\t\n\005ARRAY\020\010\022\n\n\006STRUCT\020\t\022\013\n\007NUMERIC\020\n\022\010\n\004J"
+ "SON\020\013*J\n\022TypeAnnotationCode\022$\n TYPE_ANNO"
+ "SON\020\013*X\n\022TypeAnnotationCode\022$\n TYPE_ANNO"
+ "TATION_CODE_UNSPECIFIED\020\000\022\016\n\nPG_NUMERIC\020"
+ "\002B\257\001\n\025com.google.spanner.v1B\tTypeProtoP\001"
+ "Z8google.golang.org/genproto/googleapis/"
+ "spanner/v1;spanner\252\002\027Google.Cloud.Spanne"
+ "r.V1\312\002\027Google\\Cloud\\Spanner\\V1\352\002\032Google:"
+ ":Cloud::Spanner::V1b\006proto3"
+ "\002\022\014\n\010PG_JSONB\020\003B\257\001\n\025com.google.spanner.v"
+ "1B\tTypeProtoP\001Z8google.golang.org/genpro"
+ "to/googleapis/spanner/v1;spanner\252\002\027Googl"
+ "e.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanne"
+ "r\\V1\352\002\032Google::Cloud::Spanner::V1b\006proto"
+ "3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Expand Up @@ -163,4 +163,12 @@ enum TypeAnnotationCode {
// [NUMERIC][google.spanner.v1.TypeCode.NUMERIC] when a client interacts with PostgreSQL-enabled
// Spanner databases.
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.
PG_JSONB = 3;
}

0 comments on commit 23e57ff

Please sign in to comment.