-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: manual generate library for ongoing stream on closed client #1011
Merged
+424
−2
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
327 changes: 327 additions & 0 deletions
327
samples/generated/v2/snippet_metadata.google.bigtable.v2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,327 @@ | ||
{ | ||
"clientLibrary": { | ||
"name": "nodejs-bigtable", | ||
"version": "0.1.0", | ||
"language": "TYPESCRIPT", | ||
"apis": [ | ||
{ | ||
"id": "google.bigtable.v2", | ||
"version": "v2" | ||
} | ||
] | ||
}, | ||
"snippets": [ | ||
{ | ||
"regionTag": "bigtable_v2_generated_Bigtable_ReadRows_async", | ||
"title": "bigtable readRows Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Streams back the contents of all requested rows in key order, optionally applying the same Reader filter to each. Depending on their size, rows and cells may be broken up across multiple responses, but atomicity of each row will still be preserved. See the ReadRowsResponse documentation for details.", | ||
"canonical": true, | ||
"file": "bigtable.read_rows.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 20, | ||
"end": 69, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "ReadRows", | ||
"fullName": "google.bigtable.v2.Bigtable.ReadRows", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "table_name", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "app_profile_id", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "rows", | ||
"type": ".google.bigtable.v2.RowSet" | ||
}, | ||
{ | ||
"name": "filter", | ||
"type": ".google.bigtable.v2.RowFilter" | ||
}, | ||
{ | ||
"name": "rows_limit", | ||
"type": "TYPE_INT64" | ||
} | ||
], | ||
"resultType": ".google.bigtable.v2.ReadRowsResponse", | ||
"client": { | ||
"shortName": "BigtableClient", | ||
"fullName": "google.bigtable.v2.BigtableClient" | ||
}, | ||
"method": { | ||
"shortName": "ReadRows", | ||
"fullName": "google.bigtable.v2.Bigtable.ReadRows", | ||
"service": { | ||
"shortName": "Bigtable", | ||
"fullName": "google.bigtable.v2.Bigtable" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"regionTag": "bigtable_v2_generated_Bigtable_SampleRowKeys_async", | ||
"title": "bigtable sampleRowKeys Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Returns a sample of row keys in the table. The returned row keys will delimit contiguous sections of the table of approximately equal size, which can be used to break up the data for distributed tasks like mapreduces.", | ||
"canonical": true, | ||
"file": "bigtable.sample_row_keys.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 20, | ||
"end": 54, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "SampleRowKeys", | ||
"fullName": "google.bigtable.v2.Bigtable.SampleRowKeys", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "table_name", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "app_profile_id", | ||
"type": "TYPE_STRING" | ||
} | ||
], | ||
"resultType": ".google.bigtable.v2.SampleRowKeysResponse", | ||
"client": { | ||
"shortName": "BigtableClient", | ||
"fullName": "google.bigtable.v2.BigtableClient" | ||
}, | ||
"method": { | ||
"shortName": "SampleRowKeys", | ||
"fullName": "google.bigtable.v2.Bigtable.SampleRowKeys", | ||
"service": { | ||
"shortName": "Bigtable", | ||
"fullName": "google.bigtable.v2.Bigtable" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"regionTag": "bigtable_v2_generated_Bigtable_MutateRow_async", | ||
"title": "bigtable mutateRow Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Mutates a row atomically. Cells already present in the row are left unchanged unless explicitly changed by `mutation`.", | ||
"canonical": true, | ||
"file": "bigtable.mutate_row.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 20, | ||
"end": 64, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "MutateRow", | ||
"fullName": "google.bigtable.v2.Bigtable.MutateRow", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "table_name", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "app_profile_id", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "row_key", | ||
"type": "TYPE_BYTES" | ||
}, | ||
{ | ||
"name": "mutations", | ||
"type": "TYPE_MESSAGE[]" | ||
} | ||
], | ||
"resultType": ".google.bigtable.v2.MutateRowResponse", | ||
"client": { | ||
"shortName": "BigtableClient", | ||
"fullName": "google.bigtable.v2.BigtableClient" | ||
}, | ||
"method": { | ||
"shortName": "MutateRow", | ||
"fullName": "google.bigtable.v2.Bigtable.MutateRow", | ||
"service": { | ||
"shortName": "Bigtable", | ||
"fullName": "google.bigtable.v2.Bigtable" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"regionTag": "bigtable_v2_generated_Bigtable_MutateRows_async", | ||
"title": "bigtable mutateRows Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow, but the entire batch is not executed atomically.", | ||
"canonical": true, | ||
"file": "bigtable.mutate_rows.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 20, | ||
"end": 61, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "MutateRows", | ||
"fullName": "google.bigtable.v2.Bigtable.MutateRows", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "table_name", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "app_profile_id", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "entries", | ||
"type": "TYPE_MESSAGE[]" | ||
} | ||
], | ||
"resultType": ".google.bigtable.v2.MutateRowsResponse", | ||
"client": { | ||
"shortName": "BigtableClient", | ||
"fullName": "google.bigtable.v2.BigtableClient" | ||
}, | ||
"method": { | ||
"shortName": "MutateRows", | ||
"fullName": "google.bigtable.v2.Bigtable.MutateRows", | ||
"service": { | ||
"shortName": "Bigtable", | ||
"fullName": "google.bigtable.v2.Bigtable" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"regionTag": "bigtable_v2_generated_Bigtable_CheckAndMutateRow_async", | ||
"title": "bigtable checkAndMutateRow Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Mutates a row atomically based on the output of a predicate Reader filter.", | ||
"canonical": true, | ||
"file": "bigtable.check_and_mutate_row.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 20, | ||
"end": 81, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "CheckAndMutateRow", | ||
"fullName": "google.bigtable.v2.Bigtable.CheckAndMutateRow", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "table_name", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "app_profile_id", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "row_key", | ||
"type": "TYPE_BYTES" | ||
}, | ||
{ | ||
"name": "predicate_filter", | ||
"type": ".google.bigtable.v2.RowFilter" | ||
}, | ||
{ | ||
"name": "true_mutations", | ||
"type": "TYPE_MESSAGE[]" | ||
}, | ||
{ | ||
"name": "false_mutations", | ||
"type": "TYPE_MESSAGE[]" | ||
} | ||
], | ||
"resultType": ".google.bigtable.v2.CheckAndMutateRowResponse", | ||
"client": { | ||
"shortName": "BigtableClient", | ||
"fullName": "google.bigtable.v2.BigtableClient" | ||
}, | ||
"method": { | ||
"shortName": "CheckAndMutateRow", | ||
"fullName": "google.bigtable.v2.Bigtable.CheckAndMutateRow", | ||
"service": { | ||
"shortName": "Bigtable", | ||
"fullName": "google.bigtable.v2.Bigtable" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"regionTag": "bigtable_v2_generated_Bigtable_ReadModifyWriteRow_async", | ||
"title": "bigtable readModifyWriteRow Sample", | ||
"origin": "API_DEFINITION", | ||
"description": " Modifies a row atomically on the server. The method reads the latest existing timestamp and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the timestamp is the greater of the existing timestamp or the current server time. The method returns the new contents of all modified cells.", | ||
"canonical": true, | ||
"file": "bigtable.read_modify_write_row.js", | ||
"language": "JAVASCRIPT", | ||
"segments": [ | ||
{ | ||
"start": 20, | ||
"end": 65, | ||
"type": "FULL" | ||
} | ||
], | ||
"clientMethod": { | ||
"shortName": "ReadModifyWriteRow", | ||
"fullName": "google.bigtable.v2.Bigtable.ReadModifyWriteRow", | ||
"async": true, | ||
"parameters": [ | ||
{ | ||
"name": "table_name", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "app_profile_id", | ||
"type": "TYPE_STRING" | ||
}, | ||
{ | ||
"name": "row_key", | ||
"type": "TYPE_BYTES" | ||
}, | ||
{ | ||
"name": "rules", | ||
"type": "TYPE_MESSAGE[]" | ||
} | ||
], | ||
"resultType": ".google.bigtable.v2.ReadModifyWriteRowResponse", | ||
"client": { | ||
"shortName": "BigtableClient", | ||
"fullName": "google.bigtable.v2.BigtableClient" | ||
}, | ||
"method": { | ||
"shortName": "ReadModifyWriteRow", | ||
"fullName": "google.bigtable.v2.Bigtable.ReadModifyWriteRow", | ||
"service": { | ||
"shortName": "Bigtable", | ||
"fullName": "google.bigtable.v2.Bigtable" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sofisl could you take a look? Is the version right to you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the current version of the library, but there's no way to put that information into the generator. I think, for now, we should just change it manually, but then have release-please update this value when a new release is made. I'll open a bug on release-please.