Skip to content

Commit 383fea5

Browse files
feat: add FLOAT32 enum to TypeCode (#2800)
* feat: add FLOAT32 enum to TypeCode PiperOrigin-RevId: 601176446 Source-Link: googleapis/googleapis@584ecd4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0bdb815779d0fd7824bafff0c91046a7dca5cd5f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGJkYjgxNTc3OWQwZmQ3ODI0YmFmZmYwYzkxMDQ2YTdkY2E1Y2Q1ZiJ9 * 🦉 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>
1 parent d3b0812 commit 383fea5

File tree

3 files changed

+40
-12
lines changed

3 files changed

+40
-12
lines changed

proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeCode.java

+24
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
7575
* <code>FLOAT64 = 3;</code>
7676
*/
7777
FLOAT64(3),
78+
/**
79+
*
80+
*
81+
* <pre>
82+
* Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
83+
* `"-Infinity"`.
84+
* </pre>
85+
*
86+
* <code>FLOAT32 = 15;</code>
87+
*/
88+
FLOAT32(15),
7889
/**
7990
*
8091
*
@@ -246,6 +257,17 @@ public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum {
246257
* <code>FLOAT64 = 3;</code>
247258
*/
248259
public static final int FLOAT64_VALUE = 3;
260+
/**
261+
*
262+
*
263+
* <pre>
264+
* Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
265+
* `"-Infinity"`.
266+
* </pre>
267+
*
268+
* <code>FLOAT32 = 15;</code>
269+
*/
270+
public static final int FLOAT32_VALUE = 15;
249271
/**
250272
*
251273
*
@@ -406,6 +428,8 @@ public static TypeCode forNumber(int value) {
406428
return INT64;
407429
case 3:
408430
return FLOAT64;
431+
case 15:
432+
return FLOAT32;
409433
case 4:
410434
return TIMESTAMP;
411435
case 5:

proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/TypeProto.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
5959
+ "ype_fqn\030\005 \001(\t\"\177\n\nStructType\0223\n\006fields\030\001 "
6060
+ "\003(\0132#.google.spanner.v1.StructType.Field"
6161
+ "\032<\n\005Field\022\014\n\004name\030\001 \001(\t\022%\n\004type\030\002 \001(\0132\027."
62-
+ "google.spanner.v1.Type*\272\001\n\010TypeCode\022\031\n\025T"
62+
+ "google.spanner.v1.Type*\307\001\n\010TypeCode\022\031\n\025T"
6363
+ "YPE_CODE_UNSPECIFIED\020\000\022\010\n\004BOOL\020\001\022\t\n\005INT6"
64-
+ "4\020\002\022\013\n\007FLOAT64\020\003\022\r\n\tTIMESTAMP\020\004\022\010\n\004DATE\020"
65-
+ "\005\022\n\n\006STRING\020\006\022\t\n\005BYTES\020\007\022\t\n\005ARRAY\020\010\022\n\n\006S"
66-
+ "TRUCT\020\t\022\013\n\007NUMERIC\020\n\022\010\n\004JSON\020\013\022\t\n\005PROTO\020"
67-
+ "\r\022\010\n\004ENUM\020\016*d\n\022TypeAnnotationCode\022$\n TYP"
68-
+ "E_ANNOTATION_CODE_UNSPECIFIED\020\000\022\016\n\nPG_NU"
69-
+ "MERIC\020\002\022\014\n\010PG_JSONB\020\003\022\n\n\006PG_OID\020\004B\254\001\n\025co"
70-
+ "m.google.spanner.v1B\tTypeProtoP\001Z5cloud."
71-
+ "google.com/go/spanner/apiv1/spannerpb;sp"
72-
+ "annerpb\252\002\027Google.Cloud.Spanner.V1\312\002\027Goog"
73-
+ "le\\Cloud\\Spanner\\V1\352\002\032Google::Cloud::Spa"
74-
+ "nner::V1b\006proto3"
64+
+ "4\020\002\022\013\n\007FLOAT64\020\003\022\013\n\007FLOAT32\020\017\022\r\n\tTIMESTA"
65+
+ "MP\020\004\022\010\n\004DATE\020\005\022\n\n\006STRING\020\006\022\t\n\005BYTES\020\007\022\t\n"
66+
+ "\005ARRAY\020\010\022\n\n\006STRUCT\020\t\022\013\n\007NUMERIC\020\n\022\010\n\004JSO"
67+
+ "N\020\013\022\t\n\005PROTO\020\r\022\010\n\004ENUM\020\016*d\n\022TypeAnnotati"
68+
+ "onCode\022$\n TYPE_ANNOTATION_CODE_UNSPECIFI"
69+
+ "ED\020\000\022\016\n\nPG_NUMERIC\020\002\022\014\n\010PG_JSONB\020\003\022\n\n\006PG"
70+
+ "_OID\020\004B\254\001\n\025com.google.spanner.v1B\tTypePr"
71+
+ "otoP\001Z5cloud.google.com/go/spanner/apiv1"
72+
+ "/spannerpb;spannerpb\252\002\027Google.Cloud.Span"
73+
+ "ner.V1\312\002\027Google\\Cloud\\Spanner\\V1\352\002\032Googl"
74+
+ "e::Cloud::Spanner::V1b\006proto3"
7575
};
7676
descriptor =
7777
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/type.proto

+4
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ enum TypeCode {
103103
// `"-Infinity"`.
104104
FLOAT64 = 3;
105105

106+
// Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
107+
// `"-Infinity"`.
108+
FLOAT32 = 15;
109+
106110
// Encoded as `string` in RFC 3339 timestamp format. The time zone
107111
// must be present, and must be `"Z"`.
108112
//

0 commit comments

Comments
 (0)