Skip to content

Adds support for attaching labels to cloud spanner sessions#2606

Merged
vkedia merged 7 commits intogoogleapis:masterfrom
vkedia:session-labels
Nov 18, 2017
Merged

Adds support for attaching labels to cloud spanner sessions#2606
vkedia merged 7 commits intogoogleapis:masterfrom
vkedia:session-labels

Conversation

@vkedia
Copy link
Copy Markdown

@vkedia vkedia commented Nov 9, 2017

No description provided.

@googlebot
Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again.

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Nov 9, 2017
@vkedia
Copy link
Copy Markdown
Author

vkedia commented Nov 9, 2017

cc @tomayles


/**
* Sets the labels to add to all Sessions created in this client.
*/

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

}

public Map<String, String> getSessionLabels() {
return sessionLabels;

This comment was marked as spam.

Copy link
Copy Markdown
Contributor

@vam-google vam-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (with few comments)

* <a href="https://cloud.google.com/spanner/docs/reference/rpc/google.spanner.v1#google.spanner.v1.Session">
* api docs </a>.
*/
public Builder setSessionLabels(Map<String, String> sessionLabels) {

This comment was marked as spam.

This comment was marked as spam.

CreateSessionRequest.Builder request =
CreateSessionRequest.newBuilder().setDatabase(databaseName);
if (labels != null && !labels.isEmpty()) {
Session.Builder session = Session.newBuilder().putAllLabels(labels);

This comment was marked as spam.

This comment was marked as spam.

@vkedia
Copy link
Copy Markdown
Author

vkedia commented Nov 14, 2017

@tomayles Does this look good?


/**
* Sets the labels to add to all Sessions created in this client.
*

This comment was marked as spam.

This comment was marked as spam.

@vkedia vkedia added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Nov 18, 2017
@vkedia vkedia merged commit 6c8c37c into googleapis:master Nov 18, 2017
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
…2606)

Now we will record open telemetry metrics only if explicitly turned on.
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
…PACE (#2606)

PiperOrigin-RevId: 624989428

Source-Link:
googleapis/googleapis@caf600a

Source-Link:
https://github.com/googleapis/googleapis-gen/commit/cc580b8ea4c07f774093d0f8c4afedd2eae6e856
Copy-Tag:
eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJjYzU4MGI4ZWE0YzA3Zjc3NDA5M2QwZjhjNGFmZWRkMmVhZTZlODU2In0=

build: Update protobuf to 25.3 in WORKSPACE

PiperOrigin-RevId: 624989428

Source-Link:
googleapis/googleapis@caf600a

Source-Link:
https://github.com/googleapis/googleapis-gen/commit/cc580b8ea4c07f774093d0f8c4afedd2eae6e856
Copy-Tag:
eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJjYzU4MGI4ZWE0YzA3Zjc3NDA5M2QwZjhjNGFmZWRkMmVhZTZlODU2In0=

docs:card proto update
feat: material icon in card

PiperOrigin-RevId: 624942359

Source-Link:
googleapis/googleapis@436a34a

Source-Link:
https://github.com/googleapis/googleapis-gen/commit/7c861248a2ab2c3dbd25d52afec49ff905e66a8b
Copy-Tag:
eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiI3Yzg2MTI0OGEyYWIyYzNkYmQyNWQ1MmFmZWM0OWZmOTA1ZTY2YThiIn0=

feat: Add DEMAND_GEN_ADS and DEMAND_GEN_ADS_DISCOVER_SURFACE in
ReportingContextEnum
docs: Deprecate DISCOVERY_ADS and document the new enum values

PiperOrigin-RevId: 619534137

Source-Link:
googleapis/googleapis@b4771b1

Source-Link:
https://github.com/googleapis/googleapis-gen/commit/bd9798abf4dd809911e31ec7c2174f9817c72c69
Copy-Tag:
eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJiZDk3OThhYmY0ZGQ4MDk5MTFlMzFlYzdjMjE3NGY5ODE3YzcyYzY5In0=

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Lawrence Qiu <[email protected]>
Co-authored-by: Tomo Suzuki <[email protected]>
Co-authored-by: Tomo Suzuki <[email protected]>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
#2606)

* chore: Update generation configuration at Wed Oct 29 02:36:04 UTC 2025

* chore: generate libraries at Wed Oct 29 02:36:40 UTC 2025

* chore: Update generation configuration at Thu Oct 30 02:35:08 UTC 2025

* chore: Update generation configuration at Fri Oct 31 02:36:01 UTC 2025

* chore: Update generation configuration at Sat Nov  1 02:35:35 UTC 2025

* chore: Update generation configuration at Tue Nov  4 02:36:23 UTC 2025

* chore: Update generation configuration at Wed Nov  5 02:35:14 UTC 2025

* chore: generate libraries at Wed Nov  5 02:35:46 UTC 2025

* chore: Update generation configuration at Thu Nov  6 02:35:50 UTC 2025

* chore: Update generation configuration at Fri Nov  7 02:34:52 UTC 2025

* chore: Update generation configuration at Sat Nov  8 02:31:55 UTC 2025

* chore: generate libraries at Sat Nov  8 02:32:23 UTC 2025

* chore: Update generation configuration at Tue Nov 11 02:35:53 UTC 2025

* chore: Update generation configuration at Wed Nov 12 02:34:52 UTC 2025

* chore: Update generation configuration at Thu Nov 13 02:35:52 UTC 2025

---------

Co-authored-by: Diego Marquez <[email protected]>
meltsufin pushed a commit that referenced this pull request May 1, 2026
#2606)

* chore: Update generation configuration at Wed Oct 29 02:36:04 UTC 2025

* chore: generate libraries at Wed Oct 29 02:36:40 UTC 2025

* chore: Update generation configuration at Thu Oct 30 02:35:08 UTC 2025

* chore: Update generation configuration at Fri Oct 31 02:36:01 UTC 2025

* chore: Update generation configuration at Sat Nov  1 02:35:35 UTC 2025

* chore: Update generation configuration at Tue Nov  4 02:36:23 UTC 2025

* chore: Update generation configuration at Wed Nov  5 02:35:14 UTC 2025

* chore: generate libraries at Wed Nov  5 02:35:46 UTC 2025

* chore: Update generation configuration at Thu Nov  6 02:35:50 UTC 2025

* chore: Update generation configuration at Fri Nov  7 02:34:52 UTC 2025

* chore: Update generation configuration at Sat Nov  8 02:31:55 UTC 2025

* chore: generate libraries at Sat Nov  8 02:32:23 UTC 2025

* chore: Update generation configuration at Tue Nov 11 02:35:53 UTC 2025

* chore: Update generation configuration at Wed Nov 12 02:34:52 UTC 2025

* chore: Update generation configuration at Thu Nov 13 02:35:52 UTC 2025

---------

Co-authored-by: Diego Marquez <[email protected]>
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.

5 participants