Skip to content

docs: add documentation for ending streams early#1263

Merged
stephenplusplus merged 1 commit intogoogleapis:masterfrom
callmehiphop:end-stream-docs
Apr 25, 2016
Merged

docs: add documentation for ending streams early#1263
stephenplusplus merged 1 commit intogoogleapis:masterfrom
callmehiphop:end-stream-docs

Conversation

@callmehiphop
Copy link
Contributor

Closes #1261

There were several spots in our documentation where we failed to give an example of how to end a stream early.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 25, 2016
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 3b77be8 on callmehiphop:end-stream-docs into 4d754ac on GoogleCloudPlatform:master.

@stephenplusplus
Copy link
Contributor

Nice!

@stephenplusplus stephenplusplus merged commit c5f5216 into googleapis:master Apr 25, 2016
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
Co-authored-by: Stephen <stephenplusplus@users.noreply.github.com>
Co-authored-by: Xiaozhen Liu <xiaozhenliu@google.com>
miguelvelezsa pushed a commit that referenced this pull request Jan 28, 2026
… of nested fields (#1266)

* test: Restrict types inside the save function (#1264)

* Add interfaces that restrict values passed to save

* Add interfaces for save

We need help from the compiler so these interfaces will be useful for determining the shape of the data.

* Modify current interfaces to make a closer match

The interfaces should match the actual data types that get passed in.

* key and data in PrepareEntityObjectResponse option

These properties are actually optional

* Document all the interfaces added for the save fn

* Add two tests showing name/value should be provide

* Make the SaveNonArrayData more specific.

save doesn’t encode strings or ints or any values that don’t have keys properly so we should restrict the interface to what it does include.

* Add header

* Test should be more flexible

* Add a class for elements with ToString

* Define the toString class inline

* Eliminate links to points in code

* test: Add tests that describe how save should encode excludeFromIndexes for a complex case (#1263)

* Write a sample test for what save output should be

* Add a test for a bunch of complex excludeFromIndex

* Change the replace function so it works everywhere

* Modify the expected value

Make it contain longStringArray

* Correct the test for evaluating arrays

* Break up the entityToEntityProto into separate par

* Fix the tests to work with new addExcludeFromIndex

* Revert "Break up the entityToEntityProto into separate par"

This reverts commit 60dabd7c234afb02ac59cc63541b35df2c2f7874.

* Revert "Fix the tests to work with new addExcludeFromIndex"

This reverts commit ba4e82b3c94bba7c7a239dce91a777bee01c6f1b.

* Remove source code changes

* Skip the test that looks at arrays

* Remove some of the wildcard indexes

This is in excludeFromIndexes - replace them with literals.

* Remove another boolean value from excludeFromIndex

* Eliminate duplicate expectedMutations

* Eliminate duplicate runTest function

* Begin to set up the async tests

* Pack all tests into the async framework

* Delete tests addressed by async

* Get rid of test functions and inline everything

* Add comment

* Add comments describing each test case

* Remove only

* Add another test looks at name/value not in array

* Add a test for excludeLarge properties and name/va

* Fix the test so that the array case matches

Matches the single case

* should pass the right properties for an array

* Rename the test

* Change name to entityName

* Add two tests that capture the array encoding

encoding problem

* Change expected output of arrays

* Remove only

* Add 2 more tests to ensure behaviour is preserved

* Correct test - it should apply excludeFromIndexes

* Update the test for the nested value

* fix: Handle excludeLarge properties for arrays properly (#1265)

* Write a sample test for what save output should be

* Add a test for a bunch of complex excludeFromIndex

* Change the replace function so it works everywhere

* Modify the expected value

Make it contain longStringArray

* Correct the test for evaluating arrays

* Break up the entityToEntityProto into separate par

* Fix the tests to work with new addExcludeFromIndex

* Break up the entityToEntityProto into separate par

* Fix the tests to work with new addExcludeFromIndex

* Revert "Break up the entityToEntityProto into separate par"

This reverts commit 60dabd7c234afb02ac59cc63541b35df2c2f7874.

* Revert "Fix the tests to work with new addExcludeFromIndex"

This reverts commit ba4e82b3c94bba7c7a239dce91a777bee01c6f1b.

* Remove source code changes

* Skip the test that looks at arrays

* Remove some of the wildcard indexes

This is in excludeFromIndexes - replace them with literals.

* Remove another boolean value from excludeFromIndex

* Eliminate duplicate expectedMutations

* Eliminate duplicate runTest function

* Begin to set up the async tests

* Pack all tests into the async framework

* Delete tests addressed by async

* Get rid of test functions and inline everything

* Add comment

* Add comments describing each test case

* Remove only

* Add another test looks at name/value not in array

* Add a test for excludeLarge properties and name/va

* Fix the test so that the array case matches

Matches the single case

* should pass the right properties for an array

* Rename the test

* Change name to entityName

* Add two tests that capture the array encoding

encoding problem

* Change expected output of arrays

* Remove only

* Add 2 more tests to ensure behaviour is preserved

* Make argument more specific for excludeFromIndexes

* Use excludeLargeProperties for array/non-array cas

* Fix the test to include entity proto

* Correct mistakes in initial implementation

* Don’t skip any of the tests

* Remove only

* Add check for excludeLargeProperties

* Remove TODO

* 🦉 Updates from OwlBot post-processor

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

* 🦉 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>
sofisl pushed a commit that referenced this pull request Feb 5, 2026
… of nested fields (#1266)

* test: Restrict types inside the save function (#1264)

* Add interfaces that restrict values passed to save

* Add interfaces for save

We need help from the compiler so these interfaces will be useful for determining the shape of the data.

* Modify current interfaces to make a closer match

The interfaces should match the actual data types that get passed in.

* key and data in PrepareEntityObjectResponse option

These properties are actually optional

* Document all the interfaces added for the save fn

* Add two tests showing name/value should be provide

* Make the SaveNonArrayData more specific.

save doesn’t encode strings or ints or any values that don’t have keys properly so we should restrict the interface to what it does include.

* Add header

* Test should be more flexible

* Add a class for elements with ToString

* Define the toString class inline

* Eliminate links to points in code

* test: Add tests that describe how save should encode excludeFromIndexes for a complex case (#1263)

* Write a sample test for what save output should be

* Add a test for a bunch of complex excludeFromIndex

* Change the replace function so it works everywhere

* Modify the expected value

Make it contain longStringArray

* Correct the test for evaluating arrays

* Break up the entityToEntityProto into separate par

* Fix the tests to work with new addExcludeFromIndex

* Revert "Break up the entityToEntityProto into separate par"

This reverts commit 60dabd7c234afb02ac59cc63541b35df2c2f7874.

* Revert "Fix the tests to work with new addExcludeFromIndex"

This reverts commit ba4e82b3c94bba7c7a239dce91a777bee01c6f1b.

* Remove source code changes

* Skip the test that looks at arrays

* Remove some of the wildcard indexes

This is in excludeFromIndexes - replace them with literals.

* Remove another boolean value from excludeFromIndex

* Eliminate duplicate expectedMutations

* Eliminate duplicate runTest function

* Begin to set up the async tests

* Pack all tests into the async framework

* Delete tests addressed by async

* Get rid of test functions and inline everything

* Add comment

* Add comments describing each test case

* Remove only

* Add another test looks at name/value not in array

* Add a test for excludeLarge properties and name/va

* Fix the test so that the array case matches

Matches the single case

* should pass the right properties for an array

* Rename the test

* Change name to entityName

* Add two tests that capture the array encoding

encoding problem

* Change expected output of arrays

* Remove only

* Add 2 more tests to ensure behaviour is preserved

* Correct test - it should apply excludeFromIndexes

* Update the test for the nested value

* fix: Handle excludeLarge properties for arrays properly (#1265)

* Write a sample test for what save output should be

* Add a test for a bunch of complex excludeFromIndex

* Change the replace function so it works everywhere

* Modify the expected value

Make it contain longStringArray

* Correct the test for evaluating arrays

* Break up the entityToEntityProto into separate par

* Fix the tests to work with new addExcludeFromIndex

* Break up the entityToEntityProto into separate par

* Fix the tests to work with new addExcludeFromIndex

* Revert "Break up the entityToEntityProto into separate par"

This reverts commit 60dabd7c234afb02ac59cc63541b35df2c2f7874.

* Revert "Fix the tests to work with new addExcludeFromIndex"

This reverts commit ba4e82b3c94bba7c7a239dce91a777bee01c6f1b.

* Remove source code changes

* Skip the test that looks at arrays

* Remove some of the wildcard indexes

This is in excludeFromIndexes - replace them with literals.

* Remove another boolean value from excludeFromIndex

* Eliminate duplicate expectedMutations

* Eliminate duplicate runTest function

* Begin to set up the async tests

* Pack all tests into the async framework

* Delete tests addressed by async

* Get rid of test functions and inline everything

* Add comment

* Add comments describing each test case

* Remove only

* Add another test looks at name/value not in array

* Add a test for excludeLarge properties and name/va

* Fix the test so that the array case matches

Matches the single case

* should pass the right properties for an array

* Rename the test

* Change name to entityName

* Add two tests that capture the array encoding

encoding problem

* Change expected output of arrays

* Remove only

* Add 2 more tests to ensure behaviour is preserved

* Make argument more specific for excludeFromIndexes

* Use excludeLargeProperties for array/non-array cas

* Fix the test to include entity proto

* Correct mistakes in initial implementation

* Don’t skip any of the tests

* Remove only

* Add check for excludeLargeProperties

* Remove TODO

* 🦉 Updates from OwlBot post-processor

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

* 🦉 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants