{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/comments/242659306","pull_request_review_id":186224354,"id":242659306,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjY1OTMwNg==","diff_hunk":"@@ -0,0 +1,75 @@\n+# Copyright 2018 Google, LLC\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+# [START vision_product_search_get_similar_products]\n+require \"google/cloud/vision\"\n+\n+\n+def product_search_get_similar_products(\n+  project_id       = \"your-project-id\",\n+  location         = \"us-west1\",\n+  product_set_id   = \"your-product-set-id\",\n+  product_category = \"apparel\",\n+  file_path        = \"path/to/product_image.jpg\",\n+  filter           = \"(color = red OR color = blue) AND style = kids\"","path":"vision/product_search/product_search_get_similar_products.rb","position":25,"original_position":25,"commit_id":"5fa8ee6e52466436db47a8ea1e5153609e966a50","original_commit_id":"5fa8ee6e52466436db47a8ea1e5153609e966a50","user":{"login":"beccasaurus","id":280,"node_id":"MDQ6VXNlcjI4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/280?v=4","gravatar_id":"","url":"https://api.github.com/users/beccasaurus","html_url":"https://github.com/beccasaurus","followers_url":"https://api.github.com/users/beccasaurus/followers","following_url":"https://api.github.com/users/beccasaurus/following{/other_user}","gists_url":"https://api.github.com/users/beccasaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/beccasaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beccasaurus/subscriptions","organizations_url":"https://api.github.com/users/beccasaurus/orgs","repos_url":"https://api.github.com/users/beccasaurus/repos","events_url":"https://api.github.com/users/beccasaurus/events{/privacy}","received_events_url":"https://api.github.com/users/beccasaurus/received_events","type":"User","site_admin":false},"body":"I adore seeing this here 🤘","created_at":"2018-12-18T18:48:05Z","updated_at":"2018-12-18T18:48:05Z","html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/376#discussion_r242659306","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/376","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/comments/242659306"},"html":{"href":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/376#discussion_r242659306"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/376"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/376","id":237810904,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3ODEwOTA0","html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/376","diff_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/376.diff","patch_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/376.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/376","number":376,"state":"open","locked":false,"title":"Vision: Add product search samples","user":{"login":"alixhami","id":19769177,"node_id":"MDQ6VXNlcjE5NzY5MTc3","avatar_url":"https://avatars2.githubusercontent.com/u/19769177?v=4","gravatar_id":"","url":"https://api.github.com/users/alixhami","html_url":"https://github.com/alixhami","followers_url":"https://api.github.com/users/alixhami/followers","following_url":"https://api.github.com/users/alixhami/following{/other_user}","gists_url":"https://api.github.com/users/alixhami/gists{/gist_id}","starred_url":"https://api.github.com/users/alixhami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alixhami/subscriptions","organizations_url":"https://api.github.com/users/alixhami/orgs","repos_url":"https://api.github.com/users/alixhami/repos","events_url":"https://api.github.com/users/alixhami/events{/privacy}","received_events_url":"https://api.github.com/users/alixhami/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-11T20:06:51Z","updated_at":"2018-12-18T18:48:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3d871a01a7a40e6ae4d4a0a938e1f7961908f76","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":962869586,"node_id":"MDU6TGFiZWw5NjI4Njk1ODY=","url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/labels/cla:%20yes","name":"cla: yes","color":"1eaa64","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/376/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/376/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/376/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/statuses/5fa8ee6e52466436db47a8ea1e5153609e966a50","head":{"label":"GoogleCloudPlatform:product-search","ref":"product-search","sha":"5fa8ee6e52466436db47a8ea1e5153609e966a50","user":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":41501829,"node_id":"MDEwOlJlcG9zaXRvcnk0MTUwMTgyOQ==","name":"ruby-docs-samples","full_name":"GoogleCloudPlatform/ruby-docs-samples","private":false,"owner":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples","description":"Ruby samples for Google Cloud Platform products.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/deployments","created_at":"2015-08-27T17:40:52Z","updated_at":"2018-12-17T03:51:00Z","pushed_at":"2018-12-18T01:07:01Z","git_url":"git://github.com/GoogleCloudPlatform/ruby-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/ruby-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples","homepage":"https://cloud.google.com/ruby","size":5760,"stargazers_count":124,"watchers_count":124,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":105,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":105,"open_issues":18,"watchers":124,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"ab5de29838b407d88216ac53c7777ec789555094","user":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":41501829,"node_id":"MDEwOlJlcG9zaXRvcnk0MTUwMTgyOQ==","name":"ruby-docs-samples","full_name":"GoogleCloudPlatform/ruby-docs-samples","private":false,"owner":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples","description":"Ruby samples for Google Cloud Platform products.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/deployments","created_at":"2015-08-27T17:40:52Z","updated_at":"2018-12-17T03:51:00Z","pushed_at":"2018-12-18T01:07:01Z","git_url":"git://github.com/GoogleCloudPlatform/ruby-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/ruby-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples","homepage":"https://cloud.google.com/ruby","size":5760,"stargazers_count":124,"watchers_count":124,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":105,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":105,"open_issues":18,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/376"},"html":{"href":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/pull/376"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/376"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/376/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/376/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/pulls/376/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/statuses/5fa8ee6e52466436db47a8ea1e5153609e966a50"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"beccasaurus"}}