Skip to content
Permalink
Browse files
feat!: resource name change (#106)
BREAKING CHANGE: use `TenantName` for resources in place of `TenantOrProjectName`
  • Loading branch information
yoshi-automation committed Mar 26, 2020
1 parent 4125077 commit 2c44fa85b84cb8b64715a784b9c960a0ac23065c
Showing with 874 additions and 1,216 deletions.
  1. +1 −1 README.md
  2. +1 −1 google-cloud-talent-bom/pom.xml
  3. +1 −1 google-cloud-talent/clirr-ignored-differences.xml
  4. +15 −15 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java
  5. +3 −3 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java
  6. +8 −8 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java
  7. +44 −44 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java
  8. +54 −54 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java
  9. +12 −12 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java
  10. +18 −18 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java
  11. +15 −15 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java
  12. +15 −15 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java
  13. +33 −33 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java
  14. +12 −12 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java
  15. +12 −12 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java
  16. +10 −0 grpc-google-cloud-talent-v4beta1/clirr-ignored-differences.xml
  17. +91 −141 ...le-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java
  18. +91 −144 ...google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java
  19. +42 −44 grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java
  20. +44 −43 grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java
  21. +150 −266 grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java
  22. +103 −169 ...google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java
  23. +92 −142 ...-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java
  24. +3 −19 synth.metadata
  25. +4 −4 versions.txt
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>4.2.0</version>
<version>4.3.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@@ -11,7 +11,7 @@
<version>0.4.0</version>
</parent>

<name>Google Cloud talent BOM</name>
<name>Google Cloud Talent BOM</name>
<url>https://github.com/googleapis/java-talent</url>
<description>
BOM for Google Cloud Talent Solution
@@ -6,6 +6,6 @@
<differenceType>7005</differenceType>
<className>com/google/cloud/talent/v4beta1/*ServiceClient</className>
<method>* *(com.google.cloud.talent.v4beta1.TenantOrProjectName*)</method>
<to>* *(com.google.cloud.talent.v4beta1.ProjectName*)</to>
<to>* *(com.google.cloud.talent.v4beta1.TenantName*)</to>
</difference>
</differences>
@@ -258,7 +258,7 @@ public final UnaryCallable<DeleteCompanyRequest, Empty> deleteCompanyCallable()
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* Company company = Company.newBuilder().build();
* Company response = companyServiceClient.createCompany(parent, company);
* }
@@ -271,7 +271,7 @@ public final UnaryCallable<DeleteCompanyRequest, Empty> deleteCompanyCallable()
* @param company Required. The company to be created.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Company createCompany(ProjectName parent, Company company) {
public final Company createCompany(TenantName parent, Company company) {
CreateCompanyRequest request =
CreateCompanyRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
@@ -288,7 +288,7 @@ public final Company createCompany(ProjectName parent, Company company) {
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ProjectName parent = ProjectName.of("[PROJECT]");
* Company company = Company.newBuilder().build();
* Company response = companyServiceClient.createCompany(parent, company);
* }
@@ -301,7 +301,7 @@ public final Company createCompany(ProjectName parent, Company company) {
* @param company Required. The company to be created.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Company createCompany(TenantName parent, Company company) {
public final Company createCompany(ProjectName parent, Company company) {
CreateCompanyRequest request =
CreateCompanyRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
@@ -318,7 +318,7 @@ public final Company createCompany(TenantName parent, Company company) {
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* Company company = Company.newBuilder().build();
* Company response = companyServiceClient.createCompany(parent.toString(), company);
* }
@@ -345,7 +345,7 @@ public final Company createCompany(String parent, Company company) {
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* Company company = Company.newBuilder().build();
* CreateCompanyRequest request = CreateCompanyRequest.newBuilder()
* .setParent(parent.toString())
@@ -370,7 +370,7 @@ public final Company createCompany(CreateCompanyRequest request) {
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* Company company = Company.newBuilder().build();
* CreateCompanyRequest request = CreateCompanyRequest.newBuilder()
* .setParent(parent.toString())
@@ -556,7 +556,7 @@ public final UnaryCallable<UpdateCompanyRequest, Company> updateCompanyCallable(
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) {
* // doThingsWith(element);
* }
@@ -570,7 +570,7 @@ public final UnaryCallable<UpdateCompanyRequest, Company> updateCompanyCallable(
* "projects/foo".
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListCompaniesPagedResponse listCompanies(ProjectName parent) {
public final ListCompaniesPagedResponse listCompanies(TenantName parent) {
ListCompaniesRequest request =
ListCompaniesRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
@@ -586,7 +586,7 @@ public final ListCompaniesPagedResponse listCompanies(ProjectName parent) {
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ProjectName parent = ProjectName.of("[PROJECT]");
* for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) {
* // doThingsWith(element);
* }
@@ -600,7 +600,7 @@ public final ListCompaniesPagedResponse listCompanies(ProjectName parent) {
* "projects/foo".
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListCompaniesPagedResponse listCompanies(TenantName parent) {
public final ListCompaniesPagedResponse listCompanies(ProjectName parent) {
ListCompaniesRequest request =
ListCompaniesRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
@@ -616,7 +616,7 @@ public final ListCompaniesPagedResponse listCompanies(TenantName parent) {
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* for (Company element : companyServiceClient.listCompanies(parent.toString()).iterateAll()) {
* // doThingsWith(element);
* }
@@ -643,7 +643,7 @@ public final ListCompaniesPagedResponse listCompanies(String parent) {
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
* .setParent(parent.toString())
* .build();
@@ -668,7 +668,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
* .setParent(parent.toString())
* .build();
@@ -693,7 +693,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque
*
* <pre><code>
* try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
* .setParent(parent.toString())
* .build();
@@ -34,7 +34,7 @@
* <pre>
* <code>
* try (CompletionClient completionClient = CompletionClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* String query = "";
* int pageSize = 0;
* CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
@@ -158,7 +158,7 @@ public CompletionStub getStub() {
*
* <pre><code>
* try (CompletionClient completionClient = CompletionClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* String query = "";
* int pageSize = 0;
* CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
@@ -186,7 +186,7 @@ public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) {
*
* <pre><code>
* try (CompletionClient completionClient = CompletionClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* String query = "";
* int pageSize = 0;
* CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
@@ -34,7 +34,7 @@
* <pre>
* <code>
* try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ClientEvent clientEvent = ClientEvent.newBuilder().build();
* ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
* }
@@ -155,7 +155,7 @@ public EventServiceStub getStub() {
*
* <pre><code>
* try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ClientEvent clientEvent = ClientEvent.newBuilder().build();
* ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
* }
@@ -169,7 +169,7 @@ public EventServiceStub getStub() {
* that uses Cloud Talent Solution.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clientEvent) {
public final ClientEvent createClientEvent(TenantName parent, ClientEvent clientEvent) {
CreateClientEventRequest request =
CreateClientEventRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
@@ -189,7 +189,7 @@ public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clien
*
* <pre><code>
* try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ProjectName parent = ProjectName.of("[PROJECT]");
* ClientEvent clientEvent = ClientEvent.newBuilder().build();
* ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
* }
@@ -203,7 +203,7 @@ public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clien
* that uses Cloud Talent Solution.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ClientEvent createClientEvent(TenantName parent, ClientEvent clientEvent) {
public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clientEvent) {
CreateClientEventRequest request =
CreateClientEventRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
@@ -223,7 +223,7 @@ public final ClientEvent createClientEvent(TenantName parent, ClientEvent client
*
* <pre><code>
* try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ClientEvent clientEvent = ClientEvent.newBuilder().build();
* ClientEvent response = eventServiceClient.createClientEvent(parent.toString(), clientEvent);
* }
@@ -254,7 +254,7 @@ public final ClientEvent createClientEvent(String parent, ClientEvent clientEven
*
* <pre><code>
* try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ClientEvent clientEvent = ClientEvent.newBuilder().build();
* CreateClientEventRequest request = CreateClientEventRequest.newBuilder()
* .setParent(parent.toString())
@@ -282,7 +282,7 @@ public final ClientEvent createClientEvent(CreateClientEventRequest request) {
*
* <pre><code>
* try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
* TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
* ClientEvent clientEvent = ClientEvent.newBuilder().build();
* CreateClientEventRequest request = CreateClientEventRequest.newBuilder()
* .setParent(parent.toString())

0 comments on commit 2c44fa8

Please sign in to comment.