Skip to content
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

Regenerate talent client #4777

Merged
merged 1 commit into from
Mar 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.talent.v4beta1.Application;
import com.google.cloud.talent.v4beta1.CreateApplicationRequest;
Expand All @@ -31,10 +32,12 @@
import com.google.cloud.talent.v4beta1.ListApplicationsRequest;
import com.google.cloud.talent.v4beta1.ListApplicationsResponse;
import com.google.cloud.talent.v4beta1.UpdateApplicationRequest;
import com.google.common.collect.ImmutableMap;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down Expand Up @@ -150,23 +153,69 @@ protected GrpcApplicationServiceStub(
GrpcCallSettings<CreateApplicationRequest, Application> createApplicationTransportSettings =
GrpcCallSettings.<CreateApplicationRequest, Application>newBuilder()
.setMethodDescriptor(createApplicationMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateApplicationRequest>() {
@Override
public Map<String, String> extract(CreateApplicationRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<GetApplicationRequest, Application> getApplicationTransportSettings =
GrpcCallSettings.<GetApplicationRequest, Application>newBuilder()
.setMethodDescriptor(getApplicationMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetApplicationRequest>() {
@Override
public Map<String, String> extract(GetApplicationRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<UpdateApplicationRequest, Application> updateApplicationTransportSettings =
GrpcCallSettings.<UpdateApplicationRequest, Application>newBuilder()
.setMethodDescriptor(updateApplicationMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateApplicationRequest>() {
@Override
public Map<String, String> extract(UpdateApplicationRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put(
"application.name", String.valueOf(request.getApplication().getName()));
return params.build();
}
})
.build();
GrpcCallSettings<DeleteApplicationRequest, Empty> deleteApplicationTransportSettings =
GrpcCallSettings.<DeleteApplicationRequest, Empty>newBuilder()
.setMethodDescriptor(deleteApplicationMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteApplicationRequest>() {
@Override
public Map<String, String> extract(DeleteApplicationRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<ListApplicationsRequest, ListApplicationsResponse>
listApplicationsTransportSettings =
GrpcCallSettings.<ListApplicationsRequest, ListApplicationsResponse>newBuilder()
.setMethodDescriptor(listApplicationsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListApplicationsRequest>() {
@Override
public Map<String, String> extract(ListApplicationsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();

this.createApplicationCallable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.talent.v4beta1.Company;
import com.google.cloud.talent.v4beta1.CreateCompanyRequest;
Expand All @@ -31,10 +32,12 @@
import com.google.cloud.talent.v4beta1.ListCompaniesRequest;
import com.google.cloud.talent.v4beta1.ListCompaniesResponse;
import com.google.cloud.talent.v4beta1.UpdateCompanyRequest;
import com.google.common.collect.ImmutableMap;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down Expand Up @@ -145,22 +148,67 @@ protected GrpcCompanyServiceStub(
GrpcCallSettings<CreateCompanyRequest, Company> createCompanyTransportSettings =
GrpcCallSettings.<CreateCompanyRequest, Company>newBuilder()
.setMethodDescriptor(createCompanyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateCompanyRequest>() {
@Override
public Map<String, String> extract(CreateCompanyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<GetCompanyRequest, Company> getCompanyTransportSettings =
GrpcCallSettings.<GetCompanyRequest, Company>newBuilder()
.setMethodDescriptor(getCompanyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetCompanyRequest>() {
@Override
public Map<String, String> extract(GetCompanyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<UpdateCompanyRequest, Company> updateCompanyTransportSettings =
GrpcCallSettings.<UpdateCompanyRequest, Company>newBuilder()
.setMethodDescriptor(updateCompanyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateCompanyRequest>() {
@Override
public Map<String, String> extract(UpdateCompanyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("company.name", String.valueOf(request.getCompany().getName()));
return params.build();
}
})
.build();
GrpcCallSettings<DeleteCompanyRequest, Empty> deleteCompanyTransportSettings =
GrpcCallSettings.<DeleteCompanyRequest, Empty>newBuilder()
.setMethodDescriptor(deleteCompanyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteCompanyRequest>() {
@Override
public Map<String, String> extract(DeleteCompanyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<ListCompaniesRequest, ListCompaniesResponse> listCompaniesTransportSettings =
GrpcCallSettings.<ListCompaniesRequest, ListCompaniesResponse>newBuilder()
.setMethodDescriptor(listCompaniesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListCompaniesRequest>() {
@Override
public Map<String, String> extract(ListCompaniesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();

this.createCompanyCallable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.talent.v4beta1.CompleteQueryRequest;
import com.google.cloud.talent.v4beta1.CompleteQueryResponse;
import com.google.common.collect.ImmutableMap;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down Expand Up @@ -97,6 +100,15 @@ protected GrpcCompletionStub(
GrpcCallSettings<CompleteQueryRequest, CompleteQueryResponse> completeQueryTransportSettings =
GrpcCallSettings.<CompleteQueryRequest, CompleteQueryResponse>newBuilder()
.setMethodDescriptor(completeQueryMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CompleteQueryRequest>() {
@Override
public Map<String, String> extract(CompleteQueryRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();

this.completeQueryCallable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.talent.v4beta1.ClientEvent;
import com.google.cloud.talent.v4beta1.CreateClientEventRequest;
import com.google.common.collect.ImmutableMap;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down Expand Up @@ -96,6 +99,15 @@ protected GrpcEventServiceStub(
GrpcCallSettings<CreateClientEventRequest, ClientEvent> createClientEventTransportSettings =
GrpcCallSettings.<CreateClientEventRequest, ClientEvent>newBuilder()
.setMethodDescriptor(createClientEventMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateClientEventRequest>() {
@Override
public Map<String, String> extract(CreateClientEventRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();

this.createClientEventCallable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest;
import com.google.cloud.talent.v4beta1.CreateJobRequest;
Expand All @@ -36,10 +37,12 @@
import com.google.cloud.talent.v4beta1.SearchJobsRequest;
import com.google.cloud.talent.v4beta1.SearchJobsResponse;
import com.google.cloud.talent.v4beta1.UpdateJobRequest;
import com.google.common.collect.ImmutableMap;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down Expand Up @@ -172,34 +175,106 @@ protected GrpcJobServiceStub(
GrpcCallSettings<CreateJobRequest, Job> createJobTransportSettings =
GrpcCallSettings.<CreateJobRequest, Job>newBuilder()
.setMethodDescriptor(createJobMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateJobRequest>() {
@Override
public Map<String, String> extract(CreateJobRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<GetJobRequest, Job> getJobTransportSettings =
GrpcCallSettings.<GetJobRequest, Job>newBuilder()
.setMethodDescriptor(getJobMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetJobRequest>() {
@Override
public Map<String, String> extract(GetJobRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<UpdateJobRequest, Job> updateJobTransportSettings =
GrpcCallSettings.<UpdateJobRequest, Job>newBuilder()
.setMethodDescriptor(updateJobMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateJobRequest>() {
@Override
public Map<String, String> extract(UpdateJobRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("job.name", String.valueOf(request.getJob().getName()));
return params.build();
}
})
.build();
GrpcCallSettings<DeleteJobRequest, Empty> deleteJobTransportSettings =
GrpcCallSettings.<DeleteJobRequest, Empty>newBuilder()
.setMethodDescriptor(deleteJobMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteJobRequest>() {
@Override
public Map<String, String> extract(DeleteJobRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<ListJobsRequest, ListJobsResponse> listJobsTransportSettings =
GrpcCallSettings.<ListJobsRequest, ListJobsResponse>newBuilder()
.setMethodDescriptor(listJobsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListJobsRequest>() {
@Override
public Map<String, String> extract(ListJobsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<BatchDeleteJobsRequest, Empty> batchDeleteJobsTransportSettings =
GrpcCallSettings.<BatchDeleteJobsRequest, Empty>newBuilder()
.setMethodDescriptor(batchDeleteJobsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<BatchDeleteJobsRequest>() {
@Override
public Map<String, String> extract(BatchDeleteJobsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<SearchJobsRequest, SearchJobsResponse> searchJobsTransportSettings =
GrpcCallSettings.<SearchJobsRequest, SearchJobsResponse>newBuilder()
.setMethodDescriptor(searchJobsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<SearchJobsRequest>() {
@Override
public Map<String, String> extract(SearchJobsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<SearchJobsRequest, SearchJobsResponse> searchJobsForAlertTransportSettings =
GrpcCallSettings.<SearchJobsRequest, SearchJobsResponse>newBuilder()
.setMethodDescriptor(searchJobsForAlertMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<SearchJobsRequest>() {
@Override
public Map<String, String> extract(SearchJobsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();

this.createJobCallable =
Expand Down
Loading