Skip to content

Commit

Permalink
samples: move generated samples to generated directory (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Feb 24, 2020
1 parent 96f2f31 commit 7836c01
Show file tree
Hide file tree
Showing 21 changed files with 32 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@
// sample-metadata:
// title:
// description: Complete job title given partial text (autocomplete)
// usage: gradle run
// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchAutocompleteJobTitle
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--query "[partially typed job title]"] [--num_results 5] [--language_code
// "en-US"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchAutocompleteJobTitle [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--query "[partially typed job title]"] [--num_results 5] [--language_code "en-US"]']

package com.google.cloud.examples.talent.v4beta1;

import com.google.cloud.talent.v4beta1.CompleteQueryRequest;
import com.google.cloud.talent.v4beta1.CompleteQueryResponse;
import com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult;
import com.google.cloud.talent.v4beta1.CompletionClient;
import com.google.cloud.talent.v4beta1.TenantName;
import com.google.cloud.talent.v4beta1.TenantOrProjectName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync",
// "job_search_batch_create_jobs")
// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "job_search_batch_create_jobs")
// sample-metadata:
// title:
// description: Batch Create Jobs
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchCreateJobs
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--company_name_one "Company name, e.g.
// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka
// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a
// description of this <i>wonderful</i> job!"] [--job_application_url_one
// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain
// View, CA 94043"] [--language_code_one "en-US"] [--company_name_two "Company name, e.g.
// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka
// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a
// description of this <i>wonderful</i> job!"] [--job_application_url_two
// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"]
// [--language_code_two "en-US"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchCreateJobs [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name_one "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a description of this <i>wonderful</i> job!"] [--job_application_url_one "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--language_code_one "en-US"] [--company_name_two "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a description of this <i>wonderful</i> job!"] [--job_application_url_two "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code_two "en-US"]']

package com.google.cloud.examples.talent.v4beta1;

import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest;
import com.google.cloud.talent.v4beta1.BatchOperationMetadata;
import com.google.cloud.talent.v4beta1.Job;
import com.google.cloud.talent.v4beta1.Job.ApplicationInfo;
import com.google.cloud.talent.v4beta1.JobOperationResult;
import com.google.cloud.talent.v4beta1.JobServiceClient;
import com.google.cloud.talent.v4beta1.TenantName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
// sample-metadata:
// title:
// description: Batch delete jobs using a filter
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchDeleteJob
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--filter "[Query]"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchDeleteJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--filter "[Query]"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync",
// "job_search_batch_update_jobs")
// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "job_search_batch_update_jobs")
// sample-metadata:
// title:
// description: Batch Update Jobs
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchUpdateJobs
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--job_name_one "job name, e.g.
// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_one "Company name, e.g.
// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka
// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a
// description of this <i>wonderful</i> job!"] [--job_application_url_one
// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain
// View, CA 94043"] [--language_code_one "en-US"] [--job_name_two "job name, e.g.
// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_two "Company name, e.g.
// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka
// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a
// description of this <i>wonderful</i> job!"] [--job_application_url_two
// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"]
// [--language_code_two "en-US"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchUpdateJobs [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_name_one "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_one "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a description of this <i>wonderful</i> job!"] [--job_application_url_one "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--language_code_one "en-US"] [--job_name_two "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_two "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a description of this <i>wonderful</i> job!"] [--job_application_url_two "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code_two "en-US"]']

package com.google.cloud.examples.talent.v4beta1;

import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.talent.v4beta1.BatchOperationMetadata;
import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest;
import com.google.cloud.talent.v4beta1.Job;
import com.google.cloud.talent.v4beta1.Job.ApplicationInfo;
import com.google.cloud.talent.v4beta1.JobOperationResult;
import com.google.cloud.talent.v4beta1.JobServiceClient;
import com.google.cloud.talent.v4beta1.TenantName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
// sample-metadata:
// title:
// description: Search Jobs using commute distance
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCommuteSearch
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCommuteSearch [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"]']

package com.google.cloud.examples.talent.v4beta1;

Expand All @@ -30,6 +28,7 @@
import com.google.cloud.talent.v4beta1.JobServiceClient;
import com.google.cloud.talent.v4beta1.RequestMetadata;
import com.google.cloud.talent.v4beta1.SearchJobsRequest;
import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob;
import com.google.cloud.talent.v4beta1.TenantName;
import com.google.cloud.talent.v4beta1.TenantOrProjectName;
import com.google.protobuf.Duration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
// sample-metadata:
// title:
// description: Creates a client event
// usage: gradle run
// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateClientEvent
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--request_id "[request_id from ResponseMetadata]"] [--event_id "[Set this
// to a unique identifier]"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateClientEvent [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--request_id "[request_id from ResponseMetadata]"] [--event_id "[Set this to a unique identifier]"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down Expand Up @@ -80,8 +76,7 @@ public static void sampleCreateClientEvent(

// The timestamp of the event as seconds of UTC time since Unix epoch
// For more information on how to create google.protobuf.Timestamps
// See:
// https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto
// See: https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto
long seconds = 0L;
Timestamp createTime = Timestamp.newBuilder().setSeconds(seconds).build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
// sample-metadata:
// title:
// description: Create Company
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateCompany
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--display_name "My Company Name"] [--external_id "Identifier of this
// company in my system"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--display_name "My Company Name"] [--external_id "Identifier of this company in my system"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,13 @@
// sample-metadata:
// title:
// description: Create Job
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJob
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--company_name "Company name, e.g.
// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting
// ID. Unique per job."] [--title "Software Engineer"] [--description "This is a description of this
// <i>wonderful</i> job!"] [--job_application_url "https://www.example.org/job-posting/123"]
// [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--address_two "111 8th
// Avenue, New York, NY 10011"] [--language_code "en-US"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting ID. Unique per job."] [--title "Software Engineer"] [--description "This is a description of this <i>wonderful</i> job!"] [--job_application_url "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code "en-US"]']

package com.google.cloud.examples.talent.v4beta1;

import com.google.cloud.talent.v4beta1.CreateJobRequest;
import com.google.cloud.talent.v4beta1.Job;
import com.google.cloud.talent.v4beta1.Job.ApplicationInfo;
import com.google.cloud.talent.v4beta1.JobServiceClient;
import com.google.cloud.talent.v4beta1.TenantName;
import com.google.cloud.talent.v4beta1.TenantOrProjectName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@
// sample-metadata:
// title:
// description: Create Job with Custom Attributes
// usage: gradle run
// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJobCustomAttributes
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--company_name "Company name, e.g.
// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting
// ID. Unique per job."] [--language_code "en-US"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJobCustomAttributes [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting ID. Unique per job."] [--language_code "en-US"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
// sample-metadata:
// title:
// description: Create Tenant for scoping resources, e.g. companies and jobs
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateTenant
// [--args='[--project_id "Your Google Cloud Project ID"] [--external_id "Your Unique Identifier for
// Tenant"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateTenant [--args='[--project_id "Your Google Cloud Project ID"] [--external_id "Your Unique Identifier for Tenant"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@
// sample-metadata:
// title:
// description: Search Jobs using custom rankings
// usage: gradle run
// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCustomRankingSearch
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCustomRankingSearch [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"]']

package com.google.cloud.examples.talent.v4beta1;

import com.google.cloud.talent.v4beta1.Job;
import com.google.cloud.talent.v4beta1.JobServiceClient;
import com.google.cloud.talent.v4beta1.RequestMetadata;
import com.google.cloud.talent.v4beta1.SearchJobsRequest;
import com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo;
import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob;
import com.google.cloud.talent.v4beta1.TenantName;
import com.google.cloud.talent.v4beta1.TenantOrProjectName;
import org.apache.commons.cli.CommandLine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
// sample-metadata:
// title:
// description: Delete Company
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteCompany
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--company_id "ID of the company to delete"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_id "ID of the company to delete"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
// sample-metadata:
// title:
// description: Delete Job
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteJob
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--job_id "Company ID"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_id "Company ID"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
// sample-metadata:
// title:
// description: Delete Tenant
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteTenant
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID)"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteTenant [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID)"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
// sample-metadata:
// title:
// description: Get Company
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetCompany
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--company_id "Company ID"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_id "Company ID"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
// sample-metadata:
// title:
// description: Get Job
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetJob
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using
// tenancy is optional)"] [--job_id "Job ID"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_id "Job ID"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
// sample-metadata:
// title:
// description: Get Tenant by name
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetTenant
// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID"]']
// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetTenant [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID"]']

package com.google.cloud.examples.talent.v4beta1;

Expand Down
Loading

0 comments on commit 7836c01

Please sign in to comment.